New answers tagged

0

I've found a work around for this issue using the REST api instead of the Java SOAP api. For some reason, the REST api doesn't run into this issue.


0

Here is a sample of a SOAP request that will return the ObjectID of an Automation Replace {accessToken} with your accessToken accordingly Replace {NameOfAutomation} with the exact name of your automation Also make sure you are passing the appropriate headers as well. Content-Type: text/xml; charset=utf-8 SOAPAction: Retrieve <soapenv:Envelope xmlns:...


2

SOAP won't be deprecated in the near future (presumably); if it were, we'd be notified in advance. The primary benefit is upload speed/reduced bandwidth. As a secondary consideration, if you're already in a REST project, you don't need to switch to SOAP just to perform deployments. Also, technically speaking, certain languages excel at either XML or JSON, ...


0

You need to set the Client ID (the Business unit MID) in your API call. In Create, Delete, Perform, and Update SOAP calls you do that like this: <Client> <ID>${#Project#BU}</ID> </Client> Retrieve calls use a different format: <ClientIDs> <ClientID>1427728</ClientID> </ClientIDs>


0

The WebException The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel is almost certainly related to support for TLS 1.2 as related to the Knowledge Article Salesforce Disabling TLS 1.1. It is odd that the login call to https://test.salesforce.com completed where as the subsequent call to https://cs101....


1

You may not be showing the entire code but you have not defined the variable for @subkey or @memberId. See the example here for using AMPscript on a custom preference page. %%[ /* Get the Id of the account */ Set @mid = [memberid] /* Get the key from the form */ Set @subKey = [_subscriberkey] if Empty(@subKey) or @subKey == "" then SET @...


3

You can specify the desired timezone in any date filters for requests, but I believe all responses contain dates using server time which is is GMT-6. Here is some documentation: https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/incoming_date_normalization.htm


1

Here is the answer I found after numerous conversations with a generous assortment of consultants. Community users cannot access the AJAX Toolkit, period. (Though the linked discussion is elderly, it is apparently still a legitimate limitation of Communities.) That hacky UserContext hack that you see elsewhere on the web doesn't work consistently, if at ...


3

The QueryResult returned from client.query will have a queryLocator property and have the done attribute set to false if there are more records to return. You can use the queryLocator value in a client.queryMore to retrieve the next batch of records. You will need to continuously call client.queryMore until done is true. See the documentation for more ...


Top 50 recent answers are included