Using [[SelectedItems]] placeholder to trigger Power Automate, for each selected item, individually
AnsweredGreetings,
I am looking for help with utilizing the [[SelectedItems]] placeholder, with a multi-select List Action. (The posts/knowledge I've used so far, are at the bottom.)
I have this working with a single selected Item, so I really only need help with set & utilizing an Array variable properly. (I think)
This is a sample of the List involved.
All I am doing here is: taking the ProjectID --> using a Skybow HTTP request to --> pass it to a Power Automate Flow --> which connects into MS Project OData --> & updates a few Enterprise Custom Fields. (This is meant to 'Archive' projects. Active-->Archived, basically.)
=== === === === === === === === === === === === === === === === === ===
The single item Action/Flow does this (tested and working):
1. A Skybow Action, with only 1 step (HTTP request), starts a Power Automate flow.
2. Power Automate receives the ProjectID and utilizes it as such:
=== === === === === === === === === === === === === === === === === ===
Multiple Items Selected [Where I am stuck]
What would be my best method for:
1. Getting the ProjectID for each selected item
2. Appending the ProjectIDs, for selected items, into an array
3. Properly passing the array into the HTTP Request, which will trigger a Power Automate flow, for each selected item [2nd screenshot above]
Any help, as always would be greatly appreciated!
=== === === === === === === === === === === === === === === === === ===
Referenced Posts/Documentation: (Mainly the first 2 were utilized)
https://my.skybow.com/hc/en-us/articles/360012039960-Starting-a-Microsoft-Flow-from-skybow-Actions
-
You can directly access all column values of selected items inside the actions of List Actions (running in context "Current list").
Just loop [[@SelectedItems]] and access column values by internal column name like this:
For this case you don't need to handle it as an additional created array.
If you want to check the technical output of [[@SelectedItems]] you can log it into the console and you'll see it's an array of all selected items objects including all column values:
0
Please sign in to leave a comment.
Comments
1 comment