DaveS
  • Member for 9 years
  • Last seen this week
Object Deploy fails with: "duplicate value found: <unknown> duplicates value on record with id"
Accepted answer
29 votes

Editor's Note: This issue has been resolved in Winter 19 Figured out the problem. Some Salesforce issue with History tracking was the root cause. Turned off history tracking in dest org and once the ...

View answer
Array.push() won't update Lightning Web Component View
Accepted answer
15 votes

If you rebuild the array as below and reassign, the @track sees the change: this.myArray = [...this.myArray, myNewElement]; My guess is that the @track isn't noticing the original push() in the ...

View answer
How to turn boxcarring OFF for LWC imperative apex method calls?
Accepted answer
14 votes

First--very well constructed question, and good investigation. I was not aware of this issue with boxcarring in LWC. I'm going to focus on a workaround rather than an actual setting, since I'm sure ...

View answer
Array.push() on a @tracked array doesn't cause component refresh in lightning-accordion in LWC
9 votes

If we create a new array as below, @track sees the change: this.myArray = [...this.myArray, myNewElement]; My guess is that the @track isn't noticing the original push in the array since an array is ...

View answer
Feasibility to import entire LWC classes to access @api methods
5 votes

Okay, so, I was thinking about this and I couldn't find a way to expose a whole Javascript class in another component, but I did come up with a clever little bit of "syntactic sugar" to make it work ...

View answer
Language Selector Component in Salesforce Community is not visible?
Accepted answer
3 votes

Language selector isn't visible for normal users. It's only there for Admins (and guest users) to view the page in different languages. Otherwise, the Language automatically is set to that which is ...

View answer
lwc dataservice architecture best practices
2 votes

So, I was struggling with this too. I had a record that I was passing around which was being used by several components, and I didn't want to rewrite the same helper code in multiple places. I also ...

View answer
How to get current record ID in a Visualforce Global Action?
1 votes

I had to do the exact same thing. I used javascript on the page to deliver the raw URL and then extracted the ID within the controller. Note that we are only including the Quick Action on Object pages,...

View answer
<apex:pageBlock /> in Visualforce Email Template
1 votes

OutputPanels make divs. There's a lot of email clients out there that won't use divs correctly. You pretty much have to go old-school with email templates. Use with inline styles. CSS stylesheets ...

View answer
How can I update a field with a custom button?
1 votes

Actually there is another possiblity. We had a standard page that showed a customer's email address and wanted the agents to click a button that simply "verifies" it. The email address would appear ...

View answer
Best practice for removing former admin user from all records, triggers and workflows?
1 votes

This is a sneaky, lazy approach. Possibly in a situation where an employee who was a SysAdmin left rapidly and ownership must immediately be changed for security reasons. 0) Target User is Active at ...

View answer
How to login to a ScratchOrg that was created by CI/CD scripts?
0 votes

If you have the accessToken, which you can display in the Build logs with: sfdx force:org:display -u <scratchorg/username> --json Then, in a bash shell, cd into a DX folder, I suggest one that's ...

View answer
How can I trigger the Oauth authentication flow for my apex-created Named Credential?
0 votes

Rather than swim upstream and try to overcome the issues of using "Named Credentials" callouts in a managed package, I've decided to use regular OAuth2 and simply manage my own tokens. This eliminates ...

View answer
Multiple controller extensions communication
0 votes

That's kind of a hokey workaround. The only real way to solve this is for Salesforce to add a method for VF pages to return the instantiated Controller. In the meantime, just add a class and ...

View answer
In an internal SFDC Http Get from a VF Page, how do I authenticate for the redirected URL?
Accepted answer
0 votes

I finally figured it out. When you're in Visualforce, your domain will always be something like c.cs7.visualforce.com. However, other salesforce pages such as standard pages will be delivered by cs7....

View answer
Does anyone know how to upload a file from within Salesforce up to an existing Box folder?
0 votes

I was forwarded this link. http://enreeco.blogspot.it/2013/01/salesforce-apex-post-mutipartform-data.html It seems to answer the question perfectly, but there were errors in the final code, and when ...

View answer
Can I store information even if the trigger throws an exception?
0 votes

And so you've found the reason why external "cloud" logging sites exist. Loggly.com and others like it live to serve us. Some exceptions can't be caught and all changes are rolled back in SFDC. The ...

View answer