ssjs-lib icon indicating copy to clipboard operation
ssjs-lib copied to clipboard

[Feature] Call Salesforce Core Rest API

Open ehsky opened this issue 2 years ago • 1 comments

I would like to use this library to also call Salesforce Core REST apis.

An implementation of this would likely follow the same pattern as sfmcapi var sfapi = new sfCoreApi();

The main reason for this is to be able to Bulk v2 record request so one is inline with best practises to not use as many API requests as one would with UpdateSingleSalesforceObject.

I'm happy to start on coding this if there is an interest to add it to ssjs-lib.

ehsky avatar Apr 25 '23 08:04 ehsky

We've had this use case too, so I wrote an SSJS wrapper that can handle both SFDC standard API endpoints and also custom Apex ones based on a supplied configuration object.

It's a standalone function independent of this lib (we wrote our own utilities class which has been sufficient for most of our use cases).

Let me know if it'd be of interest to you and I'll figure out how to share it (i.e. a gist or maybe making the whole thing public, we'll see).

ttntm avatar Sep 02 '23 12:09 ttntm