New answers tagged

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 ...
Lukas Lunow's user avatar
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.
Vinay's user avatar
  • 2,965
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, ...
sfdcfox's user avatar
  • 476k
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 = ...
sfdcfox's user avatar
  • 476k
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 ...
AUEagle2005's user avatar
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;'...
Jonas Lamberty's user avatar
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. ...
sfdcfox's user avatar
  • 476k
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 ...
SebOB's user avatar
  • 839
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 = '...
Sam Bredenhof's user avatar
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 ...
Khoa Nguyen's user avatar
0 votes

Managed Packaged Appication Help (Zap Scanner)

The current documentation states the following:
Duck The Developer's user avatar
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 ...
RyanLock's user avatar
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
Jan's user avatar
  • 1

Top 50 recent answers are included