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

Implementing Composite Graph Api #787

Open
dscataglini opened this issue Jan 24, 2023 · 0 comments
Open

Implementing Composite Graph Api #787

dscataglini opened this issue Jan 24, 2023 · 0 comments

Comments

@dscataglini
Copy link

I'd like to implement the composite graph api https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_graph_introduction.htm

Something like this

client.composite_graph do |graphs|
  graphs.add("graph1") do |subrequest|
    subrequest.create("Account", "acc_1", {name: "main account"})
    subrequest.create("Contact", "contact", {firstName: 'Joe', Email: 'test@salesforce.com', AccountId: '@{acc_1}'})
    …
  end 
  graph.add("graph2") do |subrequest|
    …
  end
end 

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

1 participant