Solved

Unable to make Customer Contact as primary except for the First record through API call

  • 19 August 2022
  • 5 replies
  • 182 views

Userlevel 7
Badge +11


Hello Everyone,

I am trying to make a  customer contact as primary through API call. But it is working for the first entered contact. Unable to set another contact. 

Could you please review and share your feedback?
 


 

icon

Best answer by jinin 1 November 2022, 13:25

View original

5 replies

Userlevel 7
Badge +11

I tried like below,

Url :/entity/Test/20.200.001/Customer/makeContactPrimary
Method: POST

Request:
{

    "entity": {

        "CustomerID": {

            "value": "AACUSTOMER"

        }

    },

    "parameters": {

        "Contact": {                     // Tried with contactID too

            "value": "Andy Appleton"

        },
         "Primary": {

            "value": true

        }

      

    }

}

Userlevel 7
Badge +17

Hi @jinin  Have you tried by setting the Name under the Primary Contact section? instead setting Primary = true at the Contacts tab.

 

 

Userlevel 7
Badge +11

Yes Naveen already verified,   If we use the Primary name as the  ContactID with customer update call, It will work. But the Primary name as the Contact name is not working. 
 


 

Userlevel 7
Badge

Hi @jinin - were you able to find a solution? Thank you!

Userlevel 7
Badge +11

Hi @Chris Hackett 

We did an alternate solution to fix the issue. Instead of using Contact Name in the request, used contactID, 

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved