Hi all I have a flow and if a particular checkbox is checked I have set an email alert to fire.
Now I have to restrict the email to be sent to a particular profile's users. I have created an apex class and fetched the profile and set the users under the profile as the recipients.
Called the apex action in the flow instead of the email alert action and it is working. I am also checking for a workaround on this using the flow itself.
Is it possible that I get the users under the profile using the get records and set all these users as recipients in the email alert action in the flow itself?
I tried this way and didn't get it working.