I'm attempting to create a flow for email notification when a team members is assigned a shift in Shifts. I currently have it set to grab the current time and add 72 hours (will be 24 once functionality is successful), grab the shift lists for that time frame, get the user info from Azure AD, and then email each person their assigned shift daily. I'm getting a few errors however..
It is wanting an array, I'm not sure how to create an array however. Any help would be greatly appreciated!
Hello @matyd1 ,
You are assigning object value to For each loop instead you have to assign it Array . You can create/convert your object into array.
Thank you for your reply! I have looked through both links you have provided and I'm still confused on how to create the array (I did read the array section of the docs prior to posting my original post) and the JSON solution doesn't have much explanation on how to use JSON to pass my argument (this seems like the easier route).
I'm super new to a lot of this and have had a few C++ courses here and there so I'm not very seasoned when it comes to coding and/or logic. I can read it and fumble through it for the most part but this one I'm pulling blanks.. I'll continue to search JSON docs in the meantime.
Alright, I've got it working... slightly lol! You have pointed me in the right direction atleast.
The problem I'm having now is that the email is going out as planned, however it is only sending it to me. For instance, I added a shift for myself and another team member, well the email was sent to me twice instead of once and I don't believe it was sent to that team member who was assigned. Screen shots attached.
Three Super User rank tiers have been launched!
Features releasing from October 2020 through March 2021
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!