HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
Discussions

Discussions

Ask a Question
Back to All

EMS API - updating the Party (or CsContact) EntityCode

Hi - I'm trying to update a person's EntityCode from DEMO to another value. I tried doing a PUT against the Party endpoint, and a PUT against the CsContact endpoint. In both cases, the response from the PUT reflects the new value of the property, so it appears the update succeeded, but if I do a GET shortly after the update, it still reflects the original value.

To perform the update, I'm basically just doing a GET on the Party or CsContact endpoint, finding this entry:

{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "EntityCode",
"Value": "DEMO"
}

and replacing it with:

{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "EntityCode",
"Value": "CSI"
}

But after the update, I do a GET, and it still shows:

{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "EntityCode",
"Value": "DEMO"
}

Wondering if that field is locked on purpose? Or if there's another way to update it that I'm missing? Thanks!

Contact us
Copyright © Advanced Solutions International, All rights reserved.