MYOBCommunity
Partner Zone
|
|
Partner Zone

Can we post multiple customer contacts in single api call?

This thread is now closed to new comments.
Some of the links provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
8 REPLIES 8
Former Staff KeranM
299 Posts
Former Staff
Australia
KeranM
Former Staff

299Posts

94Kudos

56Solutions

Re: Can we post multiple customer contacts in single api call?

At this stage the answer is yes. I keep pestering our development team about bulk updates, so it is something they are looking at. No time frames though
Keran McKenzie
Futurist in residence @MYOB

Are you a developer? Check out http://developer.myob.com
Looking for an Add-on? Check out http://myob.com/addons/

Twitter: @myobapi | @keranm
Partner amar786-dev
4 Posts
Partner
amar786-dev

4Posts

1Kudos

0Solutions

Re: Can we post multiple customer contacts in single api call?

Thanks.

 

Is it the same for all Objects (ie. Invoices,Inventory etc) in MYOB

Former Staff KeranM
299 Posts
Former Staff
Australia
KeranM
Former Staff

299Posts

94Kudos

56Solutions

Accepted Solution Solved Solution

Re: Can we post multiple customer contacts in single api call?

Hey there

 

The API doesn't support bulk updates so the short answer is 'No' you can not create multiple customers in a single call

 

K.

Keran McKenzie
Futurist in residence @MYOB

Are you a developer? Check out http://developer.myob.com
Looking for an Add-on? Check out http://myob.com/addons/

Twitter: @myobapi | @keranm
Ultimate Partner Kym__Yeoward
1,634 Posts
Ultimate Partner
Australia
Kym__Yeoward
Ultimate Partner

1634Posts

1020Kudos

127Solutions

Re: Can we post multiple customer contacts in single api call?

Thinking differently - if your question is essentially "can you post multiple customer contacts in one API [processing] call"

 

As I understand - from talking to development staff - the current AcountRight API checks and processes SQL  transaction imports one record at a time - so it would seem to handle only 1 customer contact in each API call.

 

This has led to some customer complaints about slow processing when there are large numbers of transactions being imported in AR 2014 - particularly when compared to ODBC data import in  the "old" AccountRight Plus 19.10 and Premier 19.  Some companies using addons have gone back to the old version, for this reason.

 

I'm just a field consultant (CC). If I'm wrong - the development team can give me a kick.  Smiley Happy

 

Kym Yeoward

Darwin

Partner amar786-dev
4 Posts
Partner
amar786-dev

4Posts

1Kudos

0Solutions

Re: Can we post multiple customer contacts in single api call?

OK. Thanks

 

Can we perform bulk inserts in one post request to MYOB Cards?

Ultimate Partner Kym__Yeoward
1,634 Posts
Ultimate Partner
Australia
Kym__Yeoward
Ultimate Partner

1634Posts

1020Kudos

127Solutions

Re: Can we post multiple customer contacts in single api call?

In AccountRight, you can only have 1 Customer Contact in a Customer Card

- hence applications trying to post a second or third customer contact field, will find that these entries are rejected, as these fields do not exist.

 

You can, however, get around this limitation - by creating up to 3 Custom Fields in AccountRight

- go to Lists / Custom Lists and Fields Names / Customers

 

See my post earlier today, on this issue

 

Kym Yeoward

Darwin

Partner amar786-dev
4 Posts
Partner
amar786-dev

4Posts

1Kudos

0Solutions

Re: Can we post multiple customer contacts in single api call?

Post request fails to Account right live API when we try to insert more than one customer card in myob

 

whether it supports only one card inserted per api call? why not multiple cards ?

 

 

 

 

 

 

Ultimate Partner Kym__Yeoward
1,634 Posts
Ultimate Partner
Australia
Kym__Yeoward
Ultimate Partner

1634Posts

1020Kudos

127Solutions

Re: Can we post multiple customer contacts in single api call?

AccountRight (2011: to 2015 and the "classic" desktop versions):
- There is only 1 Customer Contact name field in each Customer Card
- You can, however, create up to 3 Custom Fields in that card type
- So Customer cards could have:
- Customer Contact
- Alternative Contact (Custom Field #1)
- Customer's Superior (Custom Field #2)
- Customer's Accountant (Custom Filed #3)
and so-on,
- You can have Custom Fields for whatever you wish
- but only 3 fields per card type.
- Another example - Inventory Item cards for a heavy equipment
servicing business might have:
- Serial number
- Warranty number
- Next Service Due Date
There can be different fields, for different card types - but there's a maximum of 3 Custom Fields per card type.

You can also have Custom Lists, up to a maximum of 3 per each card type. They can be used to assist tracking of Custom Fields - or for another purpose.

Highlighted
Partner amar786-dev
4 Posts
Partner
amar786-dev

4Posts

1Kudos

0Solutions

Solved: Go to Solution

Can we post multiple customer contacts in single api call?

We are trying to insert more than one contact as customer in myob.

Following is json used to post:

 

URL Endpoint : 

https://api.myob.com/accountright/bbd714f3-fb81-451d-90e6-7b287feefd89/Contact/Customer

{
"Items": [{
"URI": null,
"SellingDetails": {
"TaxCode": {
"UID": "9676106e-4b35-4040-a5ab-f2ab5ecd190b"
},
"FreightTaxCode": {
"UID": "9676106e-4b35-4040-a5ab-f2ab5ecd190b"
}
},
"RowVersion": null,
"PhotoURI": null,
"Notes": null,
"LastName": null,
"LastModified": null,
"IsIndividual": false,
"IsActive": true,
"FirstName": null,
"DisplayID": null,
"CompanyName": "GenePoint",
"Addresses": null
},
{
"URI": null,
"SellingDetails": {
"TaxCode": {
"UID": "9676106e-4b35-4040-a5ab-f2ab5ecd190b"
},
"FreightTaxCode": {
"UID": "9676106e-4b35-4040-a5ab-f2ab5ecd190b"
}
},
"RowVersion": null,
"PhotoURI": null,
"Notes": null,
"LastName": null,
"LastModified": null,
"IsIndividual": false,
"IsActive": true,
"FirstName": null,
"DisplayID": null,
"CompanyName": "GenePoint",
"Addresses": null
}]
}

 

It gives an error "Selling details required" even we had given Selling Details.

Didn't find your answer here?
Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post