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

API - Implement Salesforce Composite API #11

Closed
5 tasks done
AMAN-BARBARIA opened this issue Aug 1, 2023 · 2 comments
Closed
5 tasks done

API - Implement Salesforce Composite API #11

AMAN-BARBARIA opened this issue Aug 1, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request task Ticket to work on
Milestone

Comments

@AMAN-BARBARIA
Copy link
Member

AMAN-BARBARIA commented Aug 1, 2023

Goal: Implement a library to allow Salesforce composite API requests. This lib should also manage the Salesforce access token, refreshing it as necessary.

Background: Different Salesforce actions can be performed via the composite API. It also allows us to perform multipleSalesforce operations in a single transaction. This lib would be used from services of various endpoint.

Tasks:

  • Implement a lib to handle Salesforce composite requests.
  • The lib should add the current Salesforce access token to the request before sending it.
  • If a request fails due to an expired access token, the endpoint should automatically refresh the token and retry the request once.
  • Implement error handling for other error cases, such as invalid requests or server errors.
  • Write tests for the library including tests of the token refresh handling.
@AMAN-BARBARIA AMAN-BARBARIA added enhancement New feature or request task Ticket to work on labels Aug 1, 2023
@AMAN-BARBARIA AMAN-BARBARIA added this to the v0.1.0 milestone Aug 1, 2023
@AMAN-BARBARIA
Copy link
Member Author

We can make use of Interceptor Pattern to reuse the common code. eg:

  • Fetch Access Token
  • Decrypt with KMS
  • Exception Handling
  • Handle oauth access token Expiry: refresh token and retry salesforce api

@AMAN-BARBARIA AMAN-BARBARIA changed the title API - Salesforce Composite API Endpoint API - Implement Salesforce Composite API Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request task Ticket to work on
Projects
Status: Done
Development

No branches or pull requests

2 participants