Hot answers tagged

3

The API limits are for Incoming calls, ie From 3rd party to SF. There is no limit for outgoing callouts from SF to external system/endpoint except platform limitation of 100 callouts in 1 transaction and no callout after DML


3

Surprisingly, there is a public facing, undocumented endpoint that will let you refresh your filtered Data Extensions as long as you have the Object ID of the Filtered DE. Below is a quick overview on how to use this endpoint, but for more details see a post I made about this. First point of order is how do we get this ObjectID? GET /data/v1/...


3

You need to pass the parameters to GetUrlRequest by changing it to method: public class RequestWrapper { public static GetUrlRequest GetUrlRequest(String cId, String sBC, String pur, abc abc, cbl cbl){ return new GetUrlRequest(cId,sBC,pur,abc,cbl); } public class abc { public String ab; public String cd; public ...


3

Internal Users if they want to access rest endpoint then the endpoint would be https://mydomain.my.salesforce.com/services/data/v45.0/support/knowledgeArticles Whereas if it's for community or guest force.com site, it would be different, as MYDOMAIN is always authenticated. That explains 401 error code. https://guestSite.my.salesforce.com/services/data/...


2

Here's an example of something I've done before to retrieve the HTML of an email. I then combined the email code with data from a DE to create my own "preview" in a CloudPage. Adapt for your own use. <script runat="server"> Platform.Load("core","1"); // Example of HTTP GET/POST to SFMC REST API to retrieve HTML of an email try { var ...


2

Yes you can put IP addresses in there as well. We've been doing this for years. Do note that salesforce does a 1:1 comparison between the domain name used in the callout and the Remote Site Setting. So you will have to use the IP address in the callout as well (and not the literal domain name).


2

API calls are metered per organization, not per user. Assuming a user has the Api Enabled permission, they can theoretically make as many API calls as the organization has available, subject to other limits, such as the concurrent request limit. In small orgs, this is pretty to do, while in really large orgs, a user might need to exceed 100 API calls per ...


2

The problem appears to relate to the way tracked parameters are implemented using a Proxy, with this then covered by/using the locker service in order to apply security constraints. The error is misleading but essentially the getDateRange API function is returning internal state of the child component, by reference. It looks like the handling of "standard" ...


1

Access Tokens have a finite lifespan. If your external application needs to maintain persistent access to Salesforce, you need to implement one of the several OAuth flows that provide a refresh token, such as the User-Agent or Web Server, or the JWT flow, which doesn't provide a refresh token but allows renewed authentication at any time via certificate. ...


1

You'd want to start from the field map and describe the fields: Map<String, String> helpTexts = new Map<String, String>(); for(SObjectField field: SobjectType.Account.fields.getMap().values()) { DescribeFieldResult des = field.getDescribe(); helpTexts.put(des.getName(), des.getInlineHelpText()); }


1

You can use authorization as 'Authorization: Bearer <your_session_id>'. You can get session id using UserInfo class httpReq.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId()); added based on comments As you said SOQL through REST: HttpRequest req = new HttpRequest(); req.setEndpoint('https://ap2.salesforce.com/services/data/v35.0/query/...


1

From my experiences you have two approaches Leverage data extensions Use AMPScript to fully handle the whole process by retrieving data and updating SFDC objects (Contact for instance) Let's say you will choose options 2 and have some preference custom fields on the Contact object like "Email consent" or "SMS consent". Core components: AMPScript in ...


1

There are two ways of achieving this: Create an APEX trigger in Sales/Service Cloud, that initiates a SOAP-API call to Salesforce every time the field is changed. This solution would immediately update the publication list. Synchronize the checkbox fields to Marketing Cloud via Marketing Cloud Connect and create an Automation that checks for differences ...


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