ContributionsMost RecentMost LikesSolutionsrecords to json file Hi there, I am pulling data from Coupa to store it in json files. its coming in below format. I need to create a JSON file for each record and store it into sftp server with id as file name. input [ { "statusLine": { "protoVersion": "HTTP/1.1", "statusCode": 200, "reasonPhrase": "OK" }, "entity": [ { "id": 41728, "created-at": "2025-04-29T15:26:38-07:00", "updated-at": "2025-04-29T15:35:14-07:00", "po-number": "4501939775" } ], "headers": { "strict-transport-security": "max-age=31536000; includeSubDomains;", "x-content-type-options": "nosniff", "vary": "Accept", "x-runtime": "0.692075" } } ] heres my pipeline with one record. after my union, i get following [ { "fileName": "41728" }, [ { "id": 41728, "created-at": "2025-04-29T15:26:38-07:00", "updated-at": "2025-04-29T15:35:14-07:00", "po-number": "4501939775" } ] ] what I am trying to do is use the id and storing it in filename so I can use that for the file name. but in fact what i want in the file is just below. { "id": 41728, "created-at": "2025-04-29T15:26:38-07:00", "updated-at": "2025-04-29T15:35:14-07:00", "po-number": "4501939775" } how can I achieve that? also how can I get the Id to be the filename.json like in below example, 41728.json Thanks Manohar Solvedtransform a array Hi there, need some help transforming the array I have a structure that's coming as below [ { "statusLine": { "protoVersion": "HTTP/1.1", "statusCode": 200, "reasonPhrase": "OK" }, "entity": { "links": [ { "rel": "self" } ], "items": [ { "datetime_beginning_utc": "2023-01-01T00:00:00", "pnode_id": 1269364670, "total_lmp_rt": 25.611892, "marginal_loss_price_rt": 0.132546 }, { "datetime_beginning_utc": "2023-01-01T01:00:00", "pnode_id": 1269364670, "total_lmp_rt": 22.818414, "marginal_loss_price_rt": 0.150509 } ] }, "original": { "priceType": "rt_hrl_lmps", "pnodId": "1269364670", } } ] Need to be transformed as below with only from "items" and "original". Need to combine both while adding "original" to all array elements in "items". Any help is greatly appreciated. Thanks Manohar [ { "datetime_beginning_utc": "2023-01-01T00:00:00", "pnode_id": 1269364670, "total_lmp_rt": 25.611892, "marginal_loss_price_rt": 0.132546, "priceType": "rt_hrl_lmps", "pnodId": "1269364670" }, { "datetime_beginning_utc": "2023-01-01T01:00:00", "pnode_id": 1269364670, "total_lmp_rt": 22.818414, "marginal_loss_price_rt": 0.150509, "priceType": "rt_hrl_lmps", "pnodId": "1269364670" } ] Re: Help handling arrays with in arrays Hi @Soni37, thank you very much for pointing out. that did help. Thanks Manohar Help handling arrays with in arrays Hi there, I am trying to handle arrays within arrays and getting error. can someone please take a look at the attached pipeline and point out what’s wrong? helpwithhandlingarray_2023_06_16.slp (7.8 KB) Thanks SolvedRe: To fix the pipeline to convert to array Hi @Soni37, please ignore it. I got it. Thank you again. Re: To fix the pipeline to convert to array hi thanks @Soni37, Works like perfectly except for one thing, I need to add 2 static elements along with the text, I tried a few ways but was not able to add to it. can you point out on how to add that? “type”:“AttachmentText”, “intent”:“Supplier”, [ { "LINES": [ { "POSEX": "00010", "attachments": [ { "type":"AttachmentText", "intent":"Supplier", "text": "KIT,HIGH SPEED PINION (HSP),,<br/>" }, { "type":"AttachmentText", "intent":"Supplier", "text": "*NSK bearings ,STF*" } ] }, { "POSEX": "00020", "attachments": [ { "type":"AttachmentText", "intent":"Supplier", "text": ",<br/>,MATERIAL DESCRIPTION :REVERSING" } ] } ] } ] Thank you again for your help. To fix the pipeline to convert to array Hi there, I have the following JSON [ { "POSEX":"00010", "E1EDPT1": [ { "E1EDPT2": [ { "@SEGMENT": "1", "TDLINE": "KIT,HIGH SPEED PINION (HSP),", "TDFORMAT": "*" }, { "@SEGMENT": "1", "TDLINE": "<br/>", "TDFORMAT": "/" } ] }, { "E1EDPT2": [ { "@SEGMENT": "1", "TDLINE": "*NSK bearings ", "TDFORMAT": "*" }, { "@SEGMENT": "1", "TDLINE": "STF*" } ] } ] }, { "POSEX":"00020", "E1EDPT1": { "@SEGMENT": "1", "E1EDPT2": [ { "@SEGMENT": "1", "TDFORMAT": "*" }, { "@SEGMENT": "1", "TDLINE": "<br/>", "TDFORMAT": "/" }, { "@SEGMENT": "1", "TDLINE": "MATERIAL DESCRIPTION :REVERSING", "TDFORMAT": "/" } ] } } ] And expecting following [ { "order-lines": [ { "line-num": "00010", "attachments": [ { "text": "KIT,HIGH SPEED PINION (HSP),<br/>" }, { "text": "*NSK bearings STF*" } ] }, { "line-num": "00020", "attachments": [ { "text": ",<br/>,MATERIAL DESCRIPTION :REVERSING " } ] } ] } ] I tried to build following pipeline and is not working toArray_2023_05_29.slp (13.4 KB) it works fine for following [ { "POSEX":"00010", "E1EDPT1": { "@SEGMENT": "1", "E1EDPT2": [ { "@SEGMENT": "1", "TDFORMAT": "*" }, { "@SEGMENT": "1", "TDLINE": "<br/>", "TDFORMAT": "/" }, { "@SEGMENT": "1", "TDLINE": "MATERIAL DESCRIPTION :REVERSING CONTACTOR, SOLID STATE", "TDFORMAT": "/" } ] } }, { "POSEX":"00020", "E1EDPT1": { "@SEGMENT": "1", "E1EDPT2": [ { "@SEGMENT": "1", "TDFORMAT": "*" }, { "@SEGMENT": "1", "TDLINE": "<br/>", "TDFORMAT": "/" }, { "@SEGMENT": "1", "TDLINE": "MATERIAL DESCRIPTION :REVERSING ", "TDFORMAT": "/" } ] } } ] and gets what expected [ { "order-lines": [ { "line-num": "00010", "attachments": [ { "text": ",<br/>,MATERIAL DESCRIPTION :REVERSING CONTACTOR, SOLID STATE" } ] }, { "line-num": "00020", "attachments": [ { "text": ",<br/>,MATERIAL DESCRIPTION :REVERSING " } ] } ] } ] Any help in fixing the pipeline SolvedRe: Base64 encoded thank you @ptaylor, appreciate your help. Re: Base64 encoded @ddellsperger that did it, thank you for your quick help. Base64 encoded Hi there, I am getting file data in base64 encoded. how do I get the file out of it? to get file along with filename_2023_03_22.slp (373.8 KB) Any help greatly appreciated. Thanks Manohar Solved