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!