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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Is there any published documentation/references for developers regarding creating data using ODATA entities

(0) ShareShare
ReportReport
Posted on by 5

My question isn't about HOW to use ODATA.  It's about understanding how to use ODATA in Dynamics to programmatically create/update data in Human Resources.

For example, one of my goals is to populate and maintain emergency contacts for employees.

I was unable to find a corresponding Dataverse table for this particular entity, but did find an exposed ODATA entity named PersonalContactPeople.

I can use ODATA calls to create this record, but there are some things I don't understand.

One of the properties on PersonalContactPeople is ContactPersonPartyNumber.  If this record were created through the UI, the record would automatically get the next PartyNumber sequence.

But when I'm creating this from ODATA, I can't leave it blank as it's required.  And while I have been able to find Sequence tables, there doesn't seem to be any method to retrieve the next sequence and have the sequence increment itself for the next call.

Not to mention, do I need to create some contact record in another entity for the emergency contact before creating the PersonalContactPeople record?

And this is where the confusion is.  How am I to know these details?

I'm really looking for some guidelines for developers to indicate what entities do what, what is required and how to supply required information.

Any help would be appreciated!

I have the same question (0)
  • Suggested answer
    huijij Profile Picture
    19,813 on at

    Hi Glen,

    The method enableNumberSequenceControlForField() of NumberSeqRecordFieldHandler class will initialize the value of the field we pass in the parameters with the next value from the sequence selected. 

    e.g.

    Hope it help you.

    regards

  • Glen Rohrer Profile Picture
    5 on at

    Thank you very much for that information!

    I'm developing in C# in Visual Studio using an ODATA connected service to perform my CRUD operations.

    Can the enableNumberSequenceControlForField() method work in this scenario?

    Is this something related to X++?  Or is it an assembly I can reference in my code?

    Would love any documentation links or examples.

    Thanks again!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 341 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 312

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 262 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans