New answers tagged

0

A cursory search tells me that the object you're looking for is the OauthToken object. To my surprise, it can be queried via SOQL, and thus we should be able to obtain information using the standard REST API resources (i.e. /services/data/vXX.X/sobjects/OauthToken/<record id>/ and /services/data/vXX.X/query/?q=<your+query+here>) The OauthToken ...


1

In addition to UI page monitoring, I think the best options are Subsequent querying of REST resource '/services/async/51.0/job/' + jobId + '/batch/' + batchId Subsequent calls of getBatchInfo method from middleware integration application if such is written or used. I guess the option to monitor the jobs using apex console debug log is possible, but not ...


0

We raised a support case with Salesforce and they said it is an issue with the request body structure. The request body should be as: { "inputs": [ { "rebateProgramId": "0i83L000000000f" } ] }


1

Try the below conn.metadata.create('CustomMetadata', metadata, function(err, results) { if (err) { console.log(err); } }); CustomMetadata is the metadata type that is required here.


0

With the standard API, once the records are updated, you can only get the new values. If you want to get the old and new values, you would need to use a trigger to trigger a Platform Event, or otherwise have had a copy of the data before it was updated.


0

The above answer works fine. If you just wanted just the customer key for the user. If you need to retrieve the associated roles as well, then below SOAP request will work: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:par="http://exacttarget.com/wsdl/partnerAPI"> <soapenv:Header/> &...


2

After forking the collection posted by Aaron Cates, I was able to get the authentication to work! I was correct in my theory that the OAuth2.0 flow was making the token request for me, so I didn't need to make a call to the v2/token endpoint. After securing the access key and trying the v1/validateEmail request recommended in the collection's setup ...


1

An OAuth access token can be thought of as if it were a session id. If that session hasn't been revoked or timed out, then it won't change. The way Salesforce handles OAuth requests is less "give me a new session" and more "check if I already have a session. If I do, give me the session id, else make a new one". All sessions in Salesforce ...


3

An API call is an inbound request, an API callout is an outbound request. API calls are rate-limited, limiting clients to the number of calls they are allowed to make daily. One API call costs one API call towards this limit. That means that updating 200 records costs the same as updating 1 record, if you place them in the same payload. It doesn't matter if ...


0

Inside of SFMC, there is currently no way to do this. The closest is via SSJS and the script.util.httprequest function, but from all explorations I have put into this and have seen others put in, no one has been able to successfully pass a certificate through this function. All other HTTPGET/HTTPPOST functions in SSJS and AMPScript do not have any way to do ...


1

The takeaway here is to verify Metadata API operations in the target org if things look like they're not deploying correctly and always use the most recent API version in the operations. There is an issue in the metadata API where the SearchLayouts need to be "jiggled" before the update in the UI due to caching. You can do this with the API as ...


Top 50 recent answers are included