Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Call Salesforce Core Rest API #13

Open
ehsky opened this issue Apr 25, 2023 · 1 comment
Open

[Feature] Call Salesforce Core Rest API #13

ehsky opened this issue Apr 25, 2023 · 1 comment

Comments

@ehsky
Copy link

ehsky commented Apr 25, 2023

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 ehsky changed the title [Feature] [Feature] Call Salesforce Core Rest API Apr 25, 2023
@ttntm
Copy link

ttntm commented Sep 2, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants