We’re using a view to contain company distribution groups. When a user filters into view, I’d like to add the Active Directory user with that email address to a given M365 group. All I need to be able to do is grab the email address off of the selected record within the script > HTTP call. Is it possible to get the selected record (the record that filtered through and caused the automation to happen) so I can provide the email address off of it to my Power Automate flow?
Hi Vivid-Squid - that’s exactly right. In my script, I am sending an HTTP call. Within the body of that call, I need to include an email address. That email address is stored on the record that triggered the automation. So, in short, I need to access information from the record that triggered the automation to be available to my script (which is the action on the automation).
I see. You need to set the record_id as an input variable on the left hand side of the automation script editor page.
There you can add the record_id from the trigger event and call it later in your script.