New answers tagged api
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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
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 ...
Top 50 recent answers are included
Related Tags
api × 2472marketing-cloud × 542
apex × 451
rest-api × 379
soap-api × 195
rest × 151
integration × 147
soap × 102
php × 74
soql × 71
ampscript × 68
json × 64
oauth2 × 64
visualforce × 63
ssjs × 58
c# × 58
callout × 57
webservices × 49
trigger × 48
lightning-web-components × 46
metadata-api × 46
email × 45
metadata × 44
journeybuilder × 42
javascript × 41