Hello!
I'm going mad, I've been stuck on the following issue for over 3 days now. Any help would be greatly appreciated!
I am trying to build a flow which will:
- In my Sharepoint library, when one of the file properties (Status - this is a choice-type column) is manually changed to (Pending)
- A flow will identify the Process Owner for that file (Process Owner (Name) - this is a person-type column drawing from user directory).
- Send them an approval request (Start and wait for approval, first to respond)
- Within the approval request I want the comments box to be mandatory (but I don't think it's possible, so happy to skip)
- If they approve, the flow will update (Update file property) that specific file property (Status) automatically to (Approved)
- And send a notification to me, saying 'file approved by process owner'
- If they reject, the flow will update (Update field property) that specific file property (Status) automatically to (Rejected)
- And send a notification to me, saying 'file rejected by process owner' and rationale (comments from approval request)
So far my biggest problem is with the Process Owner (Name) field. I can't seem to be able to arrive at a dynamic content specific to that one, specific file owner subject to approval request. Flow automatically converts it to 'apply to each' and that causes all sorts of problems when there happen to be 2 files in pending status simultaneously.
I am vaguely aware that I want the 'value' of that field (I think) and it's having trouble because it's a person-type record, and can be one of many values (each file could have a different process owner). Also, most files have only 1 Owner, but there is a handful that have 2 - is this the problem? I think I can overcome this with Expressions, but I don't know about them to be able to build myself correct dynamic content.
If I am able to overcome this first problem, I would also like to customise the layout and look of the Teams approval request (Start and Wait for approval generates both an email that I'm happy with and a Teams request which looks like complete jibberish). But that is currently the least of my worries.
Here are (hopefully) the links to my pictures:
Please, please please, if anyone has any ideas I'd be most grateful!
Thanks,
Agnes