Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

New answers tagged

0 votes

Get a list of things

In the general sense, if you don't have an ID and you want to get one, you perform a query. You can use the REST query, GraphQL, SOAP Query, to name a few. You can also run reports, look at List Views,...
sfdcfox's user avatar
  • 493k
1 vote

Get a list of things

The REST resource you're looking for here is the query resource. The resources in the SObject "family" (for lack of a better word) generally require an Id or work on/return a single item. ...
Derek F's user avatar
  • 62k
1 vote
Accepted

How to Avoid Heap Size Error on response body

In general, you can dump the unnecessary data to try and get your heap under control. You can do this by adding curly braces around the data you want to unload before Apex realizes you're over the ...
sfdcfox's user avatar
  • 493k
0 votes

Public REST API - ignore Authorization header

This is a feature; you can theoretically log in to any Site, Community, etc. If you provide an authorization header, it will be interpreted as a Salesforce session. If Salesforce doesn't recognize the ...
sfdcfox's user avatar
  • 493k
0 votes

Transactional Email API: TriggeredSend definition not enabled for this route

For others that are encountering the same error, if you have created your emails through the UI, there is a different endpoint you can try: /messaging/v1/messageDefinitionSends/{...
P Walker's user avatar
3 votes
Accepted

"message": "JSON request body must be an object at [line:1, column:2]","errorCode": "JSON_PARSER_ERROR"

When using method parameters in Apex, the parser expects a top level object that has a request element. In other words: json_body = { 'request': { 'jsonBodyList': data } } Further, you're double ...
sfdcfox's user avatar
  • 493k
1 vote

external api call when people unsubscribe in Market Cloud

The base premise is flawed. There are multiple ways to unsubscribe oneself; Writing an API call that you route unsubscribers against is one way. (think email footer) - but that solution will be ...
Jonas Lamberty's user avatar

Top 50 recent answers are included