v2.0.0
What's Changed
InsertOne
andUpsertOne
now return an instance ofSalesforceResult
which contains record IDs for newly created records- Collection and Composite methods now return an instance of
SalesforceResults
which contains an array ofSalesforceResult
and a booleanHasSalesforceErrors
- The
BulkJobResults
type has been updated to include new properties:SuccessfulRecords
andFailedRecords
- If Salesforce returns a 2xx response but includes record related errors, then do not return an error in the function
- These errors should be handled by the client by parsing through
SalesforceResult
- There is a notable exception in that if a record related error is encountered for
InsertOne
,UpdateOne
,UpsertOne
, orDeleteOne
, then a 4xx response is returned by Salesforce
- These errors should be handled by the client by parsing through
- These changes allow users to easily access record IDs of newly created records and better handle record related errors
- feature/return sf result by @k-capehart, @0cv, and @ccoVeille in #53 and #45
- docs: update readme to fix spacing and tweak examples by @k-capehart in #54
New Contributors
- @0cv made their first contribution in #45
- @ccoVeille made their first contribution in #53
Huge shoutout to @0cv for submitting #42 and doing the preliminary work, as well as to @ccoVeille for always being willing to review and make recommendations.
Full Changelog: v1.0.6...v1.0.7