The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

0

While the question itself isn't very good (no research or attempt to solve before asking), I think the idea behind it is worth exploring. At a high (and thoroughly unsatisfying) level, you don't need to do anything special here. Using JSON.deserializeUntyped() to get a Map<String, Object> would work, but it wouldn't be easy to use the deserialized ...


0

You can login to an org without oAuth via SOAP login operation with username/password as your credentials. Data Loader uses SOAP login if you choose the Password Authentication option. (It also supports oAuth). VS Code authorizes via sfdx underneath the hood. The latter goes against a "global" connected app that resides in Dev Hub (used by all orgs): The ...


0

I just found out the request has to be multipart file upload request consisting of filename, MIME type, and the file stream. below is the type of request I want to create in apex: POST /api/rest/v6/transientDocuments HTTP/1.1 Host: api.na1.echosign.com Authorization: Bearer MvyABjNotARealTokenHkYyi Content-Type: multipart/form-data Content-Disposition: ...


0

There's no one trick to ensure nothing breaks, other than going through the org diligently. If you don't have good documentation on who runs what, this might be a good time to start. If you have a full sandbox (or dev box) with integrations set up, that'd would be a good test to start to deactivate the user and see what happens. If need be, you can simply ...


1

you need to create the Mockresponse class and then you need to create the fake response. in Test class you should call this mockresponse class and not the actual endpoint. PFB the sample code. @isTest global class MockHttpResponseGenerator implements HttpCalloutMock { // Implement this interface method global HTTPResponse respond(HTTPRequest req)...


Top 50 recent answers are included