New answers tagged

0

You can use UpdateSingleSalesforceObject to update data on Sales/Service Cloud. This is an example from the doc: %%[ var @result set @result = UpdateSingleSalesforceObject('Lead','00Q00003yAEj','Email','jcc@example.com') ]%% The system updates the Email field on the Lead with ID 00Q00003yAEj to contain jcc@example.com. To retreive data, you need to ...


1

After a lengthy debugging, the following lines turns out to be ignored config.setProxyUsername("dummyUsername"); config.setProxyPassword("dummyPassword"); The code that establish the lowest level of tunneling is sun.net.www.protocol.http.HttpURLConnection#doTunneling. In its getHttpProxyAuthentication function, it will use PasswordAuthentication a = ...


4

Depending on the system you like to fetch files from, there is no need to do so via an API as the (S)FTP protocol is capable of doing so and almost any programming language supports this protocol or has packages/libraries that do so. This might also be the reason why there is no (or at least no standard and documented) endpoint for interacting with files on ...


0

A number field that is blank should not be sent as an empty string. It should either be omitted entirely or set to the value null (without quotes). When there's a value: { "someNumber": 5 } When the value is null: { "someNumber": null } Or you can just omit it entirely: { } If you can't control the JSON, then you'll have to use JSON.deserializeUntyped ...


1

In case all values form JSON are comming as strings { "key" : "value" }, you can Map < String, Object > bodyMap = JSON.deserializeUntyped(req.requestBody.toString()); if (bodyMap.containsKey('age') && String.isNotEmpty((String)bodyMap.get('age')) { obj.someNumber = (Integer) bodyMap.get('age'); } do the same for all variables you ...


0

We do something similar with the following, and I know this works. In the meta: <targetConfig targets="lightning__RecordPage"> <property name="definitionName" label="Definition Name" type="String" required="true" datasource="apex://ScheduleDefinitionPickList"/> <property name="minimumHeight" label="Minimum Height" type="...


0

Not so long ago, Pardot changed the authentication method so that you can no longer put the username and password in the URL of the request. You need to put them in the request body. See the current documentation here: http://developer.pardot.com/#authentication In particular: IMPORTANT: Support for passing credentials via querystring is deprecated ...


0

After long research about it, I found out that we do not make any auth. We should give the "myDomain" as the URL of the right environment we want to work on <script src="myDomain/support/api/48.0/lightning/opencti_min.js"></script> and we should import XML to the call center FROM : Setup -> Call Center -> Import The XML should be sent ...


1

This is indeed not possible, as you can't invoke real time events based on changes to subscriber status. Also, you have very limited possibilities of customising the standard Subscription Center to provide the ability to perform any API related activities. Hence, the best solution would be either to build the preference center within the system holding this ...


1

Composite REST resource would have been our suggestion but it has a limit of 25 sub-requests, same as Batch. A better out of the box solution is describeSObjects() in SOAP API: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:partner.soap.sforce.com"> <soapenv:Header> ... </soapenv:Header>...


1

You simply have to set the NameID and SessionIndex Attribute from the SSO Login Assertion in the Logout Request as well. I can see from your Logout Request that you are not doing this, so you get the status:Responder which is a slight hint that something went wrong. If you miss those values Salesforce will not know which Session to terminate.


2

Below is a good reference for each aspect of the SOAP Subscriber object create/update options. <CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI"> <Options> <SaveOptions> <SaveOption> <PropertyName>*</PropertyName> <SaveAction>UpdateAdd</SaveAction> </SaveOption&...


4

You should be using something like below: <?xml version="1.0" encoding="UTF-8"?> <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <s:Header> <fueloauth xmlns="...


1

Presumably, it would be a 503 Service Not Available error, not a 500 Internal Server Error code. Regardless, I think it would be safe to say that one should be parsing the resulting JSON/XML response for an errorCode of INSERT_UPDATE_DELETE_NOT_ALLOWED_DURING_MAINTENANCE rather than relying on a status code. I would expect to see a code in the 5xx range, ...


0

Only Address and SubscriberKey are required, the rest go under SubscriberAttributes. The SubscriberAttributes node should not include the Email Address or Subscriber Key. { "To": { "Address": "aspriggs@example.com", "SubscriberKey": "aspriggs@example.com", "ContactAttributes": { "SubscriberAttributes": { ...


0

I know this question is pretty old, but I recently ran across the same issue and had luck by querying the path data.email.legacy.legacyId. My api call looked like /asset/v1/content/assets?$filter=data.email.legacy.legacyId eq {{legacyId}}


1

I've personally tested this and the limit of members i can send a Direct Message to is 15 people. It's not on its documentation...


2

You probably want to execute a SOQL query via this API. Think of SOQL as a very basic version of SQL (some features not available, such as wildcards *), and the 'Case' object as your table. The query might look something like SELECT Id, Subject, Status FROM Case WHERE IsClosed = false LIMIT 1000 And the request might look something like: curl https://...


2

Unfortunately, SOQL does not have functionality like this. You can find the overall SUM() of a field but not in a running total. Here is a link to the available SOQL Aggregate Functions: https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_agg_functions.htm I believe to achieve this in Salesforce, you'd ...


0

I went to the connected app. Clicked on edit. In API (Enable OAuth Settings), checked Enable OAuth Settings: Used https://login.salesforce.com Callback URL. Added Full access (full) in Selected OAuth Scopes. Now I am able to see the Consumer Key and Consumer Secret:


3

You can go by what Rahul has suggested, its called as Promise chaining. Modern javascript has new concepts that allow you to handle these complex requirements without making you go in promise chaining callback hell. Welcome Async and Await :) await - > The keyword await makes JavaScript wait until that promise settles and returns its result. ...


2

The first thing, be sure that you want to perform this in renderedCallback, because it runs very frequent. This runs every time your component is rendered on events like @track, @api, @wire are properties updated. to make successive promises you can do like this. renderedCallback() { let a, b; getApiResult().then(result => { this.a = ...


0

For #1, you likely won't be able to programmatically pull the historic information easily as the _Sent data view only gives you the ListId for the audience and you are sending to a data extension. But what you can do going forward is to enable Send Logging and include the _DataSourceName which will give you the data extension name: This value captures ...


Top 50 recent answers are included