So I have an Array (userListAttach) of multiples links i.e.
{
"Name": "@{items('Apply_to_each')['name']}",
"ContentBytes": "@{body('Get_file_content_using_path')}",
"link": "@{items('Apply_to_each')['link']}"
}
To add as a property if I do:
Solved! Go to Solution.
userListAttach is an Array.
It contains multiple 'links' keys I want to treat the value of as strings to pass as a URL to sharepoint.
if I do:
variables('userListAttach')?[0]?['link'] after initialising a string variable it works.
HOWEVER if I do:
string(variables('userListAttach')?[0]?['link'])
It wasn't working
Weird it is working now, I just flan the flow again.
Technology gremlins
What error you getting using this expression?
string(variables('userListAttach')?[0]?['link'])
Variable 'userListAttach' is already a string? Believe you already declared that as a variable so why you need to convert to string again?
A screenshot of your flow will be helpful to analyse?
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my bloguserListAttach is an Array.
It contains multiple 'links' keys I want to treat the value of as strings to pass as a URL to sharepoint.
if I do:
variables('userListAttach')?[0]?['link'] after initialising a string variable it works.
HOWEVER if I do:
string(variables('userListAttach')?[0]?['link'])
It wasn't working
Weird it is working now, I just flan the flow again.
Technology gremlins
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
26 | |
24 | |
23 | |
14 | |
10 |
User | Count |
---|---|
57 | |
55 | |
29 | |
27 | |
24 |