Posts

Showing posts from March, 2022

Content Modifier - Concatenate Array Inputs ( Dynamic Parent Node)

Image
   Requirement is to extract the repeated XML node with Dynamic Parent Nodes. Here, we are passing the below payload directly in Content Modifier - Message Body -------------------------------------------------------------------------------------------------------------------- <message>     <header>       <messageId>1</messageId>       <masterMsgId>33300453700</masterMsgId>       <equipment>         <serialNumber>API TestSNVin</serialNumber>         <make>CAT</make>         <model>D100</model>         <nickname>API Test Asset</nickname>       </equipment>       <moduleCode>API TestDeviceSN</moduleCode>       <moduleTime>2022-02-16 10:45:14</moduleTime>       <recei...

Content Modifier - Concatenate Array Inputs

Image
 Requirement is to extract the repeated XML node with Static parent node. Step 1 - Here, I am passing input in the Content modifier itself. Sample Input: <Root> <Employee> <Name>Akshay</Name> <ID>1</ID> </Employee> <Employee> <Name>Sudeep</Name> <ID>2</ID> </Employee> <Employee> <Name>Advik</Name> <ID>3</ID> </Employee> <Employee> <Name>Hirva</Name> <ID>4</ID> </Employee> </Root> ----------------------------------------------------------------------------------------------------------------------------- Step 2 : Declare Property variables to hold the output. Name_Concat  string-join(/Root/Employee/Name, ",") ID_Concat  string-join(/Root/Employee/ID, ",") Below is the config. of the message body tab of the content modifier: -------------------------------------------------- ...

Global Data Store & Variable

Image
 The first iFlow shows how to write a variable (Global) and Write the incoming data to a Data Store. Whereas, in the second iFlow we will fetch data from the data store which was declared in the first iFlow.  First iFlow (Producer) Address : https://refapp-espm-ui-cf.cfapps.eu10.hana.ondemand.com/espm-cloud-web/espm.svc   Write Variable: Write Variables are used to share data across different integration flows (deployed on the same tenant). To consume the variable (either in another step of the same integration flow or in another integration flow), can use a Content Modifier. A variable gets expired after the retention period which is 400 days. Data Store Write Operation: This step performs a Write operation on the transient data store. Entry ID Specify an entry ID that is stored together with the message content. The entry ID must not exceed 255 characters. Details for the entry ID are read from the incoming message. ...