web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

ODATA Update / Insert / Delete WorkerContacts (DataEntity "HcmWorkerContactEntity")

(0) ShareShare
ReportReport
Posted on by 1,650

Hello,

I'm currently trying to update / insert / delete records via the entity "HcmWorkerContactEntity" with postman. Unfortunatly I always end up with 404 "No HTTP resource was found that matches the request URI". The corresponding get operation is running successfully and returns the contact detail information like E-Mail, phone, ...:

https://usnconeboxax1aos.cloud.onebox.dynamics.com/data/WorkerContacts?$format=json&$filter=PersonnelNumber%20eq%20%27123456%27&

When I copy the exact data from the get operation trying to modify only a single field (in my example "IsMobilePhone") the error message mentioned above is returned. This is my request:

https://usnconeboxax1aos.cloud.onebox.dynamics.com/data/WorkerContacts(PersonnelNumber='123456',Type='Phone',Locator='0123456789',Description='Mobiltelefon')

with the JSON Body:

{
    "IsMobilePhone""No"
}
What am I missing? Could anybody successfully update / insert / delete any record through the DataEntity "WorkerContacts" via ODATA?
Thanks in advance for any hint.
Sebastian
I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Sebastien, I think you have to mention all the fields in the Json body for update to work. Please check this post as well if that helps.

  • Blue Wang Profile Picture
    on at

    HI Sebastian Aurand ,

    Which field is your table primary key?

    You'll have to include your primary key in URL.

    For CRUD ,you can refer this blog: partnersource.blogspot.com/.../crud-with-odata-and-data-entities-in_13.html

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Sebastian,

    1. You should send PATCH request

    2. For "Type" field you need to use enum identifier /data/WorkerContacts(PersonnelNumber='123456',Type=Microsoft.Dynamics.DataEntities.LogisticsElectronicAddressMethodType'Phone',Locator='',Description='Mobiltelefon')

  • Sebastian Aurand Profile Picture
    1,650 on at

    Thanks for the hint. I didn't use the syntax for the "Enum" values.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans