Reduce an array of objects into a single object with the sum of fields as the result
I have an array of the following form:
I want to convert this array of objects into a single object that has the same fields along with Debit_Amount and Credit_Amount fields summed up.
Any help is appreciated!
@shashish.jha - welcome to Community!
It looks like you want to generate dynamic HTML using the JSON document input wihtin a pipeline, correct? One out-of-the-box solution is to use an XML Generator snap. This does make the syntax a little more strict since XML requires open and close tags, but it will work. I’ve attached an example.
Dynamic HTML_2023_02_27.slp (7.7 KB)To try it out, just upload the pipeline, create a triggered task, and call it from a browser.
If you want something a bit easier to use that supports CSS and HTML Script within the HTML body, you can contact your CSM to request the HTML Generator custom snap.
Hope this helps!