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
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Did you know that you could restore a deleted flow? Check out this helpful article.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
33 | |
32 | |
25 | |
24 | |
21 |
User | Count |
---|---|
64 | |
56 | |
44 | |
37 | |
29 |