Hello Everyone,
I am using webMethods version 9.12
There is a REST API which i am using to fetch data from some external system. I need to insert this data into my database system. When i fetch the data through API and convert the API response using Standard jsonStringToDocument service , i get a document file as response having json data inside it. Now in order to insert this data into database i need to map this into a Document/document list so that i can map this to any insertadapterservice. This is the part where i am facing the issue, because json format inside the document is complex and i am not able to make a custom document matching the format of json below.
{
"attributes": {
"type": "ContactPointTypeConsent",
"url": "/services/data/v62.0"
},
"Id": "0ZYBi0000000AszOAE",
"Name": "ANA",
"Party": {
"attributes": {
"type": "Individual",
"url": "/services/data/v62.0/"
},
"Account__c": "001Bi00000MeqRhIAJ"
},
"DataUsePurpose": {
"attributes": {
"type": "DataUsePurpose",
"url": "/services/data/v62.0/"
},
"Name": "General"
},
"EffectiveFrom": 1749780560000,
"ContactPointType": null,
"PrivacyConsentStatus": "OptIn",
"CaptureContactPointType": null,
"EAI_UP_DT__c": null
}
can anyone suggest any way to map this output to a custom document or document list, so that individual values can be used further in the mapping. The actual document has a set of such records.
or
If there is an alternate way of achieving the same.
Thank you for the assistance