Convert XML data of HTTP response to JSON format in Celigo

In celigo , From Pitney Bows provide the data in XML format .We need to convert this data to JSON format to store NetSuite. If HTTP Response like : <response><products> We store “response/products ” in the ‘Path to records in HTTP response body’ of Non Standard API response patterns tab. Select XML in the ‘Override… Continue reading Convert XML data of HTTP response to JSON format in Celigo

Extract data from XML body

Solution Below given a sample XML body From this, we can extract data using the below sample code var fileContent = fileObj.getContents(); //if xml data is in file //Parse XML to a variable var xmlObj = xmlMod.Parser.fromString({ text: fileContent }); //Getting values from 945 XML file //Traverse to each node var orderheader = xmlMod.XPath.select ({… Continue reading Extract data from XML body