Skip to content

Composite Operations #14

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

Open
k-capehart opened this issue Apr 20, 2024 · 1 comment
Open

Composite Operations #14

k-capehart opened this issue Apr 20, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@k-capehart
Copy link
Owner

k-capehart commented Apr 20, 2024

Use Composite to allow users to group dependent calls into a single request

Examples

  • Create record with child records in same request
  • Create record and retrieve record with ID in same request

Use Composite Batch to allow users to group independent requests together into a single request

Examples

  • Perform an insert and then query in same request

Considerations

  • There is still a limit of 25 subrequests (5 if they are SObject Collections)
  • Use composite calls to optimize the collections functions
    • We could group batches together into composite requests
  • I separated the logic between Collections and Composite functions because: with Composite you can insert a large amount of data with the AllOrNone parameter, while Batch and Collections have no limit to the number of batches but AllOrNone won't persist across the batches
@k-capehart k-capehart added the enhancement New feature or request label Apr 20, 2024
@k-capehart k-capehart moved this from Backlog to In progress in go-salesforce Apr 20, 2024
@k-capehart k-capehart moved this from In progress to Backlog in go-salesforce Apr 24, 2024
@k-capehart
Copy link
Owner Author

Some composite operations are already available, as they were created alongside function intended for inserting, updating, etc sobject collections

@k-capehart k-capehart self-assigned this May 30, 2024
@k-capehart k-capehart removed their assignment Nov 2, 2024
@k-capehart k-capehart self-assigned this Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant