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

Create array of objects #33

Closed
GiperScriper opened this issue Dec 10, 2015 · 1 comment
Closed

Create array of objects #33

GiperScriper opened this issue Dec 10, 2015 · 1 comment

Comments

@GiperScriper
Copy link

How can i create multiple objects in one request?

@mcohen01
Copy link
Owner

qbo.batch([
  {Customer: {GivenName: 'Foo', FamilyName: 'Bar'}, operation: 'create'},
  {Account: {Name: 'FooBar', AccountType: 'Accounts Receivable'}, operation: 'create'}
], function(err, body) {
  console.log(body)
})

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