Hot answers tagged

3

A seemingly simple question, but you really have to involve a few things in SFMC. A bit of a chain of things to prepare inside SFMC, but then pretty straightforward. Note, as you will need automation studio involve, you would get this on an hourly update basis, not in real time. The main missing link is described here. Note: You must have MobileConnect or ...


2

You can use the ScratchOrgInfo object in the SOAP API to create and delete Scratch Orgs. This means you'll need a WSDL and some language that supports SOAP in order to do this.


2

First of all, don't return null; This makes your code unnecessarily complicated, as now you have to do a null check for no reason. You should Say No To Null. Second, data tables can only show Array-formatted values, not Map-formatted values. You're correct that you've run into a problem in your code. Either fix it on the server, or you can trivially fix it ...


2

You can work with email templates as with regular records. EmailTemplate et = [SELECT Id, Body from EmailTemplate WHERE id='00X1i000000ljmvEAA']; et.Body.replace('asdf', '1234'); update et; Just write your script and execute it in anonymous console.


2

For (near) real-time event monitoring, you'll need to license Salesforce Shield or Event Monitoring add-ons. The events (known as ApiEventStream) are stored in Big Objects. It is near real-time because platform events are used to publish the data to the Big Object. Reference


1

I use an undocumented REST API (which I think is here to stay because it's pretty extensive and the Query Tool AppExchange app uses it) //get a query by id. Uses a custom apex class to handle the respose JSON. public static MCQueryDefinitionResponse getQuery(String queryId){ //GET /automation/v1/queries/{{queryID}} String authToken = getAccessToken();...


1

No. There is no API for granting login access. It must be done by using the user interface. Technically, you could use a Headless Browser, but this is not an official API, it would be the same as using the UI.


1

Would this work? Well the call would be successful and it would pause the journey, but it would only pause it for 1 day. So although it would be successful call - you would not successfully pause for more than 14 days via the API. Even if this were to work, it would not be recommended as the Triggered Send queue (aka Journey Builder Send queue) will only ...


1

Your first request is almost correct, but fields value should not be enclosed in {113}, but in quotes'113'. Here is what your q param should look like: SELECT Name FROM CarInformation__c WHERE ManagementNo__c = '113'


1

It is possible. Shared Data Extensions are physically located in Parent BU (ENT or Enterprise context). They differ from "normal" DEs in the Parent BU in that they are accessible from inside other BU contexts through SQL and AMPscript / SSJS. So, one vector to approach this is to try an attempt an SQL SELECT operation from child BU: Set up an ...


1

Salesforce does not provide an API key store for you to be able to do these types of requests. You will need a Conected App, and an authentication mechanism in order to get an access token to be able to request information from Salesforce. For example, JWT Oauth Flow. Further more, you can integrate data to the external application using the User Interface ...


1

Query 1: Assuming that you are using http callouts, it is correct that everything is blocked at least till acknowledgement is received. In this pattern the external system confirms that the message was received but processes the message asynchronously after sending the acknowledgement of receipt of message. So receipt of acknowledgement is synchronous but ...


1

You are re-assigning the doDetails list each time you loop - which needs only to be done once. Also you are overwriting the doLineItems list each time in the loop - you want to push the items rather than assign them. Like this: //do this to avoid invoking unnecessary binding in the loop let tempLineItems = []; data.doDetails.forEach( doDetail => { ...


1

I am not aware of any way to retrieve the list of package components without actually retrieving the package via the Metadata API. You can do this by making a retrieve() call. In your RetrieveRequest, you specify the name of the managed package being developed in the packaging org in the packageNames element. The ZIP file that you get back in response will ...


1

You object name should be extracted from Object Name field in your image. So it should be res__Accs__c and res__Accs__r and not the field label and plural labels. Both field label and plural labels are generally available when configuring Custom object tabs. From Setup --> Quick Find --> type packages


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