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.
Parameter Details
Parameters / ItemsCorrespondents from Adonis | Evaluation | Location | Error Code/ Text | ||
---|---|---|---|---|---|
ExternalEmployeeIDPW001P01_XREF.XREF_PIN |
|
|
| ||
NAME FirstName MiddleName LastName PW001P01.FIRSTNAME PW001P01.MIDDLENAME PW001P01.LASTNAME |
|
|
| ||
JobIDPW001P0P.POSITIONID |
|
| |||
ADDRESS Address1 Address2 Address3 PW001P01.ADDRESS1 PW001P01.ADDRESS2 PW001P01.ADDRESS3 |
|
|
| ||
CountryPW001P01.ADDRESS_COUNTRY |
|
|
| ||
ZipCode | PW001P01.POSTCODE |
|
|
| |
EmailPW001P0T.TELENO |
|
|
| ||
TelephonePW001P0T.TELENO |
|
|
| ||
BirthDate | PW001P01.BIRTHDATE |
|
|
| |
GenderPW001P01.SEX | It can be Null or ““ |
|
| ||
LegalEntity | PW001P01.CLIENT |
| Setup > Organization StructureSELECT FROM WHERE PW001P01.CLIENT=(SELECT NUMORGID FROM PWORG WHERE PWORG.ORGCODE='LegalEntity') |
| |
EmploymentStartDatePW001P01.EMPLOYMENTSTARTDATE |
|
| |||
EmploymentEndDate | PW001P01.EMPLOYMENTENDDATE | Not Null or not "" (001) |
| 001: <EmploymentEndDate> is mandatory cannot be NULL. |
|
ContractTypePW001P01.CONTRACTTYPE |
| General Codes > Contracts > Contract Type |
| ||
TerminationCode | PW001P01.STOPREASON | Not Null or not "" (001) |
| General Codes > Personal Details > Termination Reason 001: <TerminationCode> is mandatory cannot be NULL. |
|
ContactPerson FirstName MiddleName LastName PW001P06.FIRSTNAME PW001P06.MIDDLENAME PW001P06.LASTNAME | If the FirstName is not Null then
else leave it null |
|
| ||
Relationship | PW001P06.RELATION | If the ContactPerson is not Null then
else leave it null | General Codes > Family > Relationship Codes |
| |
ContactPhonePW001PT6.TELENO | If the ContactPhone is not Null then
else leave it null |
|
| ||
ContactAddress Address1 Address2 Address3 PW001P06.ADDRESS1 PW001P06.ADDRESS2 PW001P06.ADDRESS3 | It can be Null or ““ |
|
| ||
ContactCountryPW001P06.COUNTRY | It can be Null or ““ |
|
| ||
ContactZipCode | PW001P06.POSTCODE | It can be Null or ““ |
|
| |
ContactGenderPW001P06.SEX | It can be Null or ““ |
|
|
JSON Example
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" } } |
Updating Tables
PW001P01 and PW001P0P - Personal Details
PW001P01_XREF - To cross-reference PIN to EmployeeID
PW001P06 - Next of Kin Details
...
Housekeeping
APM Adonis Personnel Manager
Need to set up the XREF (cross-reference) tables. i.e we will create an INTERFACE_XREF called “DYNAMICS” in the PW001C000_XREF Table. Each standard code in Dynamics will be defined in our system, so we can map what they are referring for. We set this up in the General Codes.
Parameters / Items | Location |
Ranks | General Codes > Personal Details > Ranks |
LegalEntity | Setup > Organization Structure |
ContractType | General Codes > Contracts > Contract Type |
TerminationCode | General Codes > Personal Details > Termination Reason |
Relationship | General Codes > Family > Relationship Codes |
...
APP Adonis Administrator Portal
...