3

As with any other method you want to cover, you have to actually call it. @IsTest static void myTest() { // setup as is Test.startTest(); DynamicApi.DynamicApiPost(); Test.stopTest(); // query results // assert behavior }


1

There are no Cloud Page API endpoints. You can interact to a degree via the Content Builder Asset REST API, but not beyond just the content part (raw with AMPscript/SSJS - not rendered). There are 'internal' endpoints that are used in the UI, but we, as end users, do not have token authorization to use these endpoints. What you can do instead is do an HTTP ...


1

Unfortunately as this is an undocumented and unofficially supported endpoint, the abilities for filtering and other similar capabilities are limited. I believe this endpoint can only be filtered on Name. To my knowledge there is no way to filter this from the response. You would have to pull the full JSON and then use an array.forEach (see below backfill) or ...


1

Since you have exposed a webservice i would assume you its an inbound api call to salesforce which means you get 12 MB heap size(async limits). The best way to deal with this and to have a scalable solution would be to chunk the request in middleware(most preferable) and if you don't have one you have to ask the external system to do it. The high level steps ...


1

Reached to the Marketing cloud team on this. The custom headers are supported but for an access token, there is a bug that will be patched in the next release. The release schedule (safe harbor) is below R0 is 3/22 2021, R1 is 4/10 2021, and R2 is 4/17 2021 Once it is fixed, the below will work fine arguments": { "execute": { &...


1

It is easy once you understand the Data Model. You have the CaseFeedItem already in your system. Use this to Query for the Feedattachment. This can be done through the REST API /services/data/v51.0/query/?q=SELECT Id, RecordId, Type FROM FeedAttachment WHERE FeedEntityId = 'some_feedItem_id' Once you have the FeedAttachment use the RecordId and Type to ...


1

The easiest approach would be to split the string then build sub-arrays and join the values back up, something like: List<String> roleIds = roleIdString.split(','); while (!roleIds.isEmpty()) { List<String> roleIdSubset = new List<String>(); for (Integer i = 0; !roleIds.isEmpty() && i < 20; i++) { roleIdSubset....


1

Web Server OAuth flow is supposed to be used on browser. So you shouldn't really be testing this in Postman. Copy the URL and paste it into browser URL bar to test. Here's how Web Server flow is supposed to be implemented. You have a webpage with Login/Authorize button. User clicks on it. User is redirected to following URL {{url}}{{site}}/services/oauth2/...


1

It's worth reviewing how the Mobile Push SDK works with device registration. Specifically the section in the SDK doc around Device and Contact Registration. There is a method in the SDK that is invoked to set the contact key. If your app doesn’t set the contact key using sfmc_setContactKey:, Marketing Cloud uses the registration sent with a contact record ...


1

If you're using Files, you are using Salesforce Content. In fact, when you add a Chatter File, the platform is generating a ContentDocument/ContentVersion/ContentDocumentLink just as if you were using those objects directly - in addition to the Chatter post(s). The model sounds complicated, but it can be relatively simple to use the REST API to insert a File....


Only top voted, non community-wiki answers of a minimum length are eligible