Need assistance on flow: Get User from form entry and begin email & approval part of flow
Hi there,
I've worked with PowerAutomate a few times before, but I am currently stuck on a Flow that I need assistance with—
Basically what I'm trying to do is this:
-
A hiring manager creates a job requisition within SharePoint Form Alpha that includes all Job Data.
-
That data, when fully filled out and saved manager, will trigger a PowerAutomate flow that copies the data into a different, secure Sharepoint Form Beta.
-
Once copied, the flow then notifies our HR group that a new entry has been submitted in the secure form.
-
This new form (Sharepoint Form Beta), when a field is copied over, has some fields left blank that need to be updated by an HR Rep after submission.
-
We then want the HR Rep to "assign" the requisition to themselves or another user in HR for approval (in the form, this assignment field currently is a "Person or Group" column that pulls from our O365 user/group list).
-
The Automation should then recognize that a user has been entered into that cell in the form.
-
The automation then kicks off an approval flow, using the person entered in that cell as the first approver, which then follows down a long list of approvals if accepted.
At least that is the intention.
Currently, when I tell Power Automate to track "When a File or Item is Modified" on SharePoint Form Beta and point it at the HR Assignee cell, the Dynamic Content list of things available gives me the selections from the "People or Groups" entry, but it breaks it down into "Claims", "Name", "Email", "Picture" "Department", "Job Title", etc. I have selected "Email", but when I test the form field entry where the "HR person assigned" should be entered, the flow just hangs— doesn't fail, or get canceled, just kind of sits there. I think this is the field that may be giving the flow trouble.
I don't know if I'm doing it incorrectly by using the wrong trigger, or if there is another issue at play with how I'm utilizing the columns in SharePoint, but this is getting confusing and difficult to understand why it doesn't work. I simply want the approval to go to a list of users that the HR person can select (but also would be dynamically changed based upon who works in HR and is in the HR Group), but it seems to constantly fail the way I have it set up.
If anyone has any suggestions or changes that I should make in order for the flow to function and kick off the approvals, it'd be most appreciated.
Posted Jan 18, 2023, 10:39 PM UTC
Your flow successfully sets the "HR Assignee" field in the SharePoint item?
But when it tries to get the Email value out of that field and do something with it, it stalls (maybe retries indefinitely)?
Your description of what the flow does is very thorough, but a picture of the flow in editing mode with all actions expanded would also really help.