New answers tagged rest-api
0
votes
populate data extension with api response based on values in another data extension
You could have a look at the HTTPGet function in ampscript, and fetch the url when the emails are being generated.
If you want to maintain a DE holding the combination of the location and URL, you can ...
0
votes
Streaming Push Topics - Could not load Push Topics. Even though APIs are enabled in SF
Below are check points.
Make sure 'Streaming API', 'Author apex' permission is enabled.
User must have atleast create/read permission on the PushTopic
object.
Use EMP-Connector instead of workbench.
2
votes
To have different data type for same variable in Rest API Request body
You would have to have two different wrappers, and choose the appropriate one. Apex is a strongly typed language, so the same symbol can't be used as two different types. Alternatively, as Phil says, ...
1
vote
System.StringException: Invalid id on class test
Id thisContractId = ContractService.createNewContract();
fails because you're returning a JSON body, not an individual Id. You'd instead want to do something like:
String jsonResponse = ...
0
votes
Accepted
Attach file stored in ContentVersion object to ServiceNow Incident
Here's a working apex class that will upload a file from Salesforce Files (ContentVersion object) to a ServiceNow Incident. This class is being called from a Salesforce flow. The flow creates the ...
1
vote
Accepted
sending user-initiated email via API
Not 100% sure if you NEED to do this by objectId, but it is the safest bet in any case.
For scheduling:
POST yourSoapEndpoint + "Service.asmx"
Headers:
contentType = 'text/xml;charset=UTF-8;'...
1
vote
PATCH Method is not working with an Error "Bad Request"
String autho = 'Bearer {!$*NameCredential*.OAuthToken}';
Should be:
String autho = 'Bearer {!$Credential.OAuthToken}';
Any of the merge fields starting with $Credential are literal merge values. ...
1
vote
Download Salesforce Marketing Cloud Journey Builder History via REST API Returned all ContactKey as Contact Unknown
Theres a known issue regading this topic: https://issues.salesforce.com/issue/a028c00000tIwpHAAS/contactkey-returns-as-contact-unknown-in-journey-history-download-api.
Just add the 'id' field as a ...
0
votes
Accepted
Salesforce REST API Integration Issue with Dynamic Path Parameter
no sure exactly how the REST API is set up, but most likely the :botId needs to be replaced, not set as a variable.
String baseUrl = 'https://message.com/api/v1/campaign/message/';
String botId = '...
0
votes
Download Salesforce Marketing Cloud Journey Builder History via REST API Returned all ContactKey as Contact Unknown
I had the same issue with "contactKey": "Contact Unknown" with this fellow
I think when we use the API /interaction/v1/interactions/journeyHistory for the first time, something is ...
0
votes
Managed Packaged Appication Help (Zap Scanner)
The current documentation states the following:
0
votes
Recommended approach for coupon assignment in SFMC?
I had this same issue with ClaimRow(), and the recommendation from experienced specialists was to not use it.
The recommended approach was to use the tried-and-true SQL JOIN merge between the ...
0
votes
oAuth: client credentials flow and execution user
Key is also to enable it in the settings under OAuth and OpenlD Connect Settings -> Allow Authorization Code and Credentials Flows
Top 50 recent answers are included
Related Tags
rest-api × 3448apex × 791
marketing-cloud × 553
api × 379
rest × 258
apexrest × 217
soap-api × 214
integration × 209
oauth2 × 160
soql × 140
json × 137
callout × 137
webservices × 108
connected-apps × 81
journeybuilder × 77
visualforce × 76
tooling-api × 68
authentication × 65
httprequest × 65
community × 57
javascript × 55
bulk-api × 55
metadata-api × 54
dataextensions × 53
rest-service × 50