Goals
To direct push D365 Employee Information to the Adonis database.
Important Links
AdonisWebServices - Consume example Step by step guide on how to consume using Adonis API calls.
Methods
FL_Dynamics_Create
This is the main method to use if you wanted to upload a person from Dynamics to Adonis for the first time. You may use the example JSON script below.
FL_Dynamics_Update
For the update method, you may eliminate a parameter that you don’t want to update.
...
Parameters / Items | Evaluation | Location | Error Code/ Text | |
---|---|---|---|---|
ExternalEmployeeID |
|
|
| |
NAME FirstName MiddleName LastName |
|
|
| |
JobID |
|
| ||
ADDRESS Address1 Address2 Address3 |
|
|
| |
Country |
|
|
| |
ZipCode |
|
|
| |
|
|
| ||
Telephone |
|
|
| |
BirthDate |
|
|
| |
Gender | It can be Null or ““ |
|
| |
LegalEntity |
| Setup > Organization StructureSELECT FROM WHERE PW001P01.CLIENT=(SELECT NUMORGID FROM PWORG WHERE PWORG.ORGCODE='LegalEntity') |
| |
EmploymentStartDate |
|
|
| |
EmploymentEndDate Not Null or not "" (001) |
| 001: <EmploymentEndDate> is mandatory cannot be NULL. |
| |
ContractType |
| General Codes > Contracts > Contract Type |
| |
TerminationCode Not Null or not "" (001) |
| General Codes > Personal Details > Termination Reason 001: <TerminationCode> is mandatory cannot be NULL. |
| |
ContactPerson FirstName MiddleName LastName | If the FirstName is not Null then
else leave it null |
|
| |
Relationship | If the ContactPerson is not Null then
else leave it null | General Codes > Family > Relationship Codes |
| |
ContactPhone | If the ContactPhone is not Null then
else leave it null |
|
| |
ContactAddress Address1 Address2 Address3 | It can be Null or ““ |
|
| |
ContactCountry | It can be Null or ““ |
|
| |
ContactZipCode | It can be Null or ““ |
|
| |
ContactGender | It can be Null or ““ |
|
|
...
Code Block |
---|
{ "request": { "ExternalEmployeeID": "10022", "Name": [ { "FirstName":"Bob", "MiddleName":"Smith", "LastName":"Cruz" } ], "Jobid": "0011", "Address": [ { "Address1":"Østregata 12", "Address2":"Arendal", "Address3":"" } ], "Country": "NO", "ZipCode": "4822", "Email": "name@email.com", "Telephone": "+47 76543210", "Birthdate": "1980-01-01", "Gender": "M", "LegalEntity": 0, "EmploymentStartDate": "2022-06-01", "EmploymentEndDate": "2022-08-01", "ContractType": "1980-01-01", "TerminationCode": "1980-01-01", "ContactPerson": [ { "FirstName":"John", "MiddleName":"Salvador", "LastName":"Cruz" } ], "Relationship": "Father", "ContactPhone": "+4712342567", "ContactAddress": [ { "Address1":"Barbu 22", "Address2":"Arendal", "Address3":"" } ], "ContactCountry": "NO", "ContactZipCode": "4822", "ContactGender": "M", "Authentication_Token": "XXXX" } } |
...
Parameters / Items | Location |
ContractType | General Codes > Contracts > Contract Type |
TerminationCode | General Codes > Personal Details > Termination Reason |
Relationship | General Codes > Family > Relationship Codes |
APP Adonis Administrator
...
Portal
...