Hi Mohd Belal,
Please find below changed API responses for HTML implementation :
1. Preview API resonse :
{"DocType":1,"fileName":"155124268543312_1551335964546.html","formDetails":
{"first_name":"John","last_name":"Doetest"}
,"fileExtension":".html"}
2. Get meta data collection API :
URL : /api/documenttemplate/GetMetaDataCollection
Response added in API : "templateFileTypes":
{
"48": "PDF",
"49": "HTML"
}
3. Get template details API
URL : /api/documenttemplate/GetFormData/
{id}
New response :
{"Id":191,"TemplateName":"CBES HTML","Description":"CBES HTML","TemplateFileName":"155124268543312_1551335964546.html","Accessibility":0,"DocumentType":14,"DocumentPath":"OBFileServer\\OnBoard\\PDFServiceAssets\\TemplatesPdf\\1\\Document
","SourceProductId":17,"TemplateTypeId":27,"TemplateVersion":null,"TemplateDocumentSource":"21","TemplateStatusId":23,"TemplateStatus":null,"TemplateStartDate":null,"TemplateEndDate":null,"strPDFFiels":null,"strFieldMapping":null,"DateCreated":"2019-02-28T12:11:22","UploadDate":"2019-02-28T12:11:22","UploadedBy":"0","CompletedWithin":null,"PDFFormFields":
{"3":"pagename","4":"submit","5":"reset","6":"subject","7":"subject","8":"maths","9":"physics","10":"fileupload","11":"ok","12":"imagebutton","13":"description","14":"dropdown"}
,"MappingFields":
{"1~first_name$^$11":"first_name-Person.Given Name","2~last_name$^$14":"last_name-Person.Family Name"}
,"OriginalFormFields":
{"1":"first_name","2":"last_name","3":"pagename","4":"submit","5":"reset","6":"subject","7":"subject","8":"maths","9":"physics","10":"fileupload","11":"ok","12":"imagebutton","13":"description","14":"dropdown"}
,"isDocInUse":false,"ESignedDocument":false,"IsArchived":0,"TemplateFileTypeId":49}
Also, you need to send "TemplateFileTypeId" field while saving documentTemplate.
Please let me know if you need more details .
Thanks,
Swapnil P.
Hi Mohd Belal,
Please find below changed API responses for HTML implementation :
{"first_name":"John","last_name":"Doetest"}1. Preview API resonse :
{"DocType":1,"fileName":"155124268543312_1551335964546.html","formDetails":
,"fileExtension":".html"}
2. Get meta data collection API :
{ "48": "PDF", "49": "HTML" }URL : /api/documenttemplate/GetMetaDataCollection
Response added in API : "templateFileTypes":
3. Get template details API
{id}URL : /api/documenttemplate/GetFormData/
New response :
{"3":"pagename","4":"submit","5":"reset","6":"subject","7":"subject","8":"maths","9":"physics","10":"fileupload","11":"ok","12":"imagebutton","13":"description","14":"dropdown"}{"Id":191,"TemplateName":"CBES HTML","Description":"CBES HTML","TemplateFileName":"155124268543312_1551335964546.html","Accessibility":0,"DocumentType":14,"DocumentPath":"OBFileServer\\OnBoard\\PDFServiceAssets\\TemplatesPdf\\1\\Document
","SourceProductId":17,"TemplateTypeId":27,"TemplateVersion":null,"TemplateDocumentSource":"21","TemplateStatusId":23,"TemplateStatus":null,"TemplateStartDate":null,"TemplateEndDate":null,"strPDFFiels":null,"strFieldMapping":null,"DateCreated":"2019-02-28T12:11:22","UploadDate":"2019-02-28T12:11:22","UploadedBy":"0","CompletedWithin":null,"PDFFormFields":
,"MappingFields":
{"1~first_name$^$11":"first_name-Person.Given Name","2~last_name$^$14":"last_name-Person.Family Name"},"OriginalFormFields":
{"1":"first_name","2":"last_name","3":"pagename","4":"submit","5":"reset","6":"subject","7":"subject","8":"maths","9":"physics","10":"fileupload","11":"ok","12":"imagebutton","13":"description","14":"dropdown"},"isDocInUse":false,"ESignedDocument":false,"IsArchived":0,"TemplateFileTypeId":49}
Also, you need to send "TemplateFileTypeId" field while saving documentTemplate.
Please let me know if you need more details .
Thanks,
Swapnil P.