-
Type: Sub-task
-
Status: Done
-
Priority: Medium
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: Winter 2020 CBAT Integration
-
Labels:None
-
Company:All Clients/Multiple Clients
-
Sprint:Winter-2020 Sprint 3, Winter-2020 Sprint 4, Winter-2020 Sprint 5, Winter-2020 Sprint 6, Winter-2020 Sprint 7, Winter-2020 Sprint 8, Spring-2020 - Sprint 2, Spring-2020 - Sprint 3, Spring-2020 - Sprint 4, Spring-2020 - Sprint 5, Spring-2020 - Sprint 6
Overview:
We need to add mapping fields data in API response. Below is the analysis of current API implemented:
The system fields are accurate which can be used to identify the field and apply validation.
We can check the mapping of the form fields with the system fields from the mapping details and add validation accordingly.
Analysis of this case:
We are using following API to fetch the PDF details in Document Preview page.
https://dmsapistage.workterra.net/api/FormsLibrary/GetFormDetails/mohd.belal@careerbuilder.com/1443
Currently, this is not providing any data related to the Mapped fields which we have for this template. If we get the Mapped data in response we can use that to check the mapping and apply validation.
Same applied to Document Review Page where the API used is:
https://dmsapistage.workterra.net/api/Person/GetDetailsForEditPDF/61/1456/1/3509/3494/0
So, both these API need to be updated to return Mapped Field data for the template in its response.
FYI, the API which we are using in create template is returning the Mapped fields data:
https://dmsapistage.workterra.net/api/DocumentTemplate/GetFormData/1443