New answers tagged

0 votes

Salesforce Account Merge Trigger Execution in Bulk Scenarios

How is it possible that these operations happen within the same transaction? A transaction starts when an API call is made, and ends when the API call returns the final results and writes the debug ...
sfdcfox's user avatar
  • 481k
2 votes

LWC Invalid Mutation error when copying data from a @api property

part.IsReplace = false is a mutation of the object. You need to copy the object. Typically, when I add a field, I'll use the ... operator to copy the existing object and add new properties at the same ...
sfdcfox's user avatar
  • 481k
3 votes
Accepted

Show custom error message instead of 'Internal Server Error' in postman

If you're using a parameterized method, you can't control the error if the data type is invalid. Consider: @HttpGet public static String method(Id contactId) { ... } This code will throw an error ...
sfdcfox's user avatar
  • 481k
0 votes

Dynamic lightning-button-menu causing infinite loop

I was missing the most obvious choice here add an onclick to the menu that creates the list used to create the entries, this will ensure that the most updated data is used when creating the menu ...
ravent's user avatar
  • 11
0 votes
Accepted

Salesforce Custom Field APi

I think the reason for this error is that the field is not visible or accessible to the user or profile that is running the integration. You can check and edit the field-level security settings for ...
Tushar Jadav's user avatar
0 votes
Accepted

Error 400 and Error 401

HTTP 400 This means that the headers or body of the request were malformed. This could be an invalid JSON or query string, invalid host name, etc. You'd have to doublecheck the data you're sending. ...
sfdcfox's user avatar
  • 481k
0 votes
Accepted

Downloading a file via REST API

You can try getting the ContentSize when querying the ContentVersion, like this: SELECT ContentSize, VersionData FROM ContentVersion WHERE ContentDocumentId = '{id}' AND IsLatest = true
leckoluck's user avatar
0 votes

SFMC REST Api, create template based email

It took some time but with some research and trial and error, I ended up with this relatively stable version (written in Apex). // Not sure if it compiles, I had to remove some dependencies, but you ...
itsmebasti's user avatar
  • 6,359

Top 50 recent answers are included