Hi Team,
We are trying to implement the custom json datasource using IMailMergeDataSource.
Json:-
{
"pb_lastname_1": null,
"pb_lastname_2": null,
"receivedmethod": "E-mail",
"pb_lastname_3": null,
"success": true,
"auditstatusaction": null,
"ordernumber_old": null,
"parties": [
{
"partyseq": 1,
"userpartytype": "PB",
"firstname": "Lee",
"middlename": null,
"lastname": "Salzmann",
"usersuffix": null,
"email": "lee@test.com",
"companyname": null,
"address1": "28 Winoke Drive",
"address2": null,
"city": "Huntington Station",
"state": "NY",
"zip": "11746",
"phone": null,
"fax": null
},
{
"partyseq": 2,
"userpartytype": "PB",
"firstname": "Mike",
"middlename": null,
"lastname": "S",
"usersuffix": null,
"email": "mike@test.com",
"companyname": null,
"address1": "28 Winoke Drive",
"address2": null,
"city": "Huntington Station",
"state": "NY",
"zip": "11746",
"phone": null,
"fax": null
}
]
}
How can we implement custom jsondatasource which will generate the data based on specific filed we will pass in tempalte. either it could be parents data or child data.
like
«pb_lastname_1» «pb_lastname_2» or «parties[0]. userpartytype» without using executeWithRegions or fill a table. and what expression we have to use in word template for specific child filed.
Please help.
Thanks in Advance .
Regards,
Dilip