Skip to main content
Question

Acumatica API not updating multiple Contacts under Customer records

  • February 18, 2025
  • 2 replies
  • 26 views

We are trying to create an integration with Acumatica API and we are encountering issues or weird behavior when updating multiple items in a parent record.

For example when we try to update multiple contacts for a customer, it won't update the all contacts but only update the first one, but the weird thing is it picks up the values from the second item to update the first item, like the contact note field of second item will replace the contact note field of the first item, we are not sure if its bug or something.

Anyone experience the same issues?

Here is my sample Json payload for a Customer PutEntity endpoint, the note for ContactID: 100745 will replace the note for ContactID: 100743, but will not touch the second item.

Seems like only first Contact gets updated.

{
  "id": "01a0c017-df7f-ea11-8175-b9d61cb73193",
    "Contacts": [
    {
      "note": {
        "value": "Note for 100743"
      },
      "ContactID": {
        "value": 100743
      },
    },
    {
      "note": {
        "value": "Note for 100745"
      },
      "ContactID": {
        "value": 100745
      }
    }
  ],

} 

2 replies

Nilkanth Dipak
Semi-Pro I
Forum|alt.badge.img+10

Hi ​@alancodless,

Could you please try below Payload, i tried and it is updating as expected.
 

{
  "id": "70113b2c-d87f-e411-beca-00b56d0561c2",
  "Contacts": [
    {

      "ContactID": {
        "value": 9982
      },
      "note": {
        "value": "Note for 9982 Test 1"
      }
    },
    {

      "ContactID": {
        "value": 11932
      },
      "note": {
        "value": "Note for 11932 Test2"
      }
    }
  ]
}

Hope, it helps!


  • Author
  • Freshman I
  • 2 replies
  • February 24, 2025

Helli ​@Nilkanth Dipak 

I tried using the PutEntity operation and still same issue, as you see below, the 1st contact’s notes got replaced with the second contact, the 2nd contact note is untouched.

May i know which endpoint or version of Acumatica do you use?

This is the endpoint i use: PUT http://localhost/AcumaticaERPNew/entity/Default/22.200.001/Customer?$expand=Contacts

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings