To get Module Id and Fields using API Help
Authorization:
1. Select “Post Authorization” from Home and Click on “Test API” button from the right bottom corner, see the below image.
2. Enter Company code, user name and password in pop up window.
3. Click on “Send” button, Copy Access token from the window.
Module Types:
1. Select “Get Module Types” from Home and Click on “Test API” button from the right bottom corner, see the below image.
2. Add Access Token in header and Click on “Send” button, module id list will display in json format. See the body in below popup.
Module Fields:
1. Select “Get Module Fields ” from Home and Click on “Test API” button from the right bottom corner, see the below image.
2. Enter Module id and Add Access Token in header and Click on “Send” button.
3. Module fields will display of the given Module id in json format. See the body details below popup.
Steps to create Sample application
Below link is for attachment reference
https://www.dropbox.com/s/d255jp483n2kwpe/HR%20Request.zip?dl=0
1. Design screen with required fields.
2. For any screen creation below fields are required apart from the screen related fields.
a) Screen ID
b) Trans ID
Example
3. Create Model class and add properties with above required field names with respective data types.
Example:
4. Similarly, create new controller with Action Methods Get and Post.
5. Need to add company details for authentication. (user name, password and company code).
6. In Authorization process it will check the user credentials, it will send response with access token.
Example:
7. Add Access token in to the request header and convert all fields data to json format and send the request.
8. After it will Display the Response message whether success or fail.
9 . After giving inputs for all required fields, click on save button. (provide Trans ID=0 for saving)
Update the Data:
1. If we want to update the data particular employee, provide all the data in to fields.
2. Enter Trans Id and Document number of the record which you are going to update the details then click on save button.
Example:
Delete Record:
1. If we want to delete the data of the particular record, provide Trans ID and Screen ID.
2. above two fields are enough to provide to delete the record.
Example:
Note: check the Sample application before going to create any screen.
Attachment:
Comments
Post a Comment