Hot answers tagged

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 ...


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="...


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 = ...


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 ...


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&...


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 ...


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

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, ...


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...


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.


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 = ...


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