Hi.
I am trying to use a logic app for a integration solution. I call a service that returns a record where one field is Street. this field contains text with /n and I need that to be the delimiter to split it into three address field in the service I post to.
I am struggling with how to achieve that. Any suggestion to how to achieve that would be most appreciated.
解决方案
Hi,
You can do it like below
1. Initialise a variable of Array type outside for each like below
2. Set this variable in for each with your value like below.
@split(triggerBody()?['Street'],'/n')
3. then,in your http shape you can initialise you variable array which you used earlier like below
address1:@variables('edw')[0]
address2:@variables('edw')[1]
address3:@variables('edw')[2]