web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Prevent non-uploader o...
Power Automate
Unanswered

Prevent non-uploader of starting a workflow

(0) ShareShare
ReportReport
Posted on by 427

Hello,

 

I was wondering if the following requirement is possible. I have a Sharepoint Document Library where users can upload their documents and submit it for approval. However it seems that if user A uploads a document, user B can press on the button to start the workflow. 

 

I was thinking of implementing the following:

DJanssen_1-1702566981664.png

After the get File Properties action that comes after the trigger I want to create a condition that checks if the CreatedBy Email with a field that could determine which user triggered the flow. Does somebody know which action to use?

 

But ideally I would like to catch this behaviour in the Sharepoint Document Library. Is there any way to do this outside of the Power Automate workflow?

 

Thanks in advance 🙂 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,678 Most Valuable Professional on at
    Re: Prevent non-uploader of starting a workflow

    This wouldn't be outside the flow, but you could try adding a trigger condition to the flow trigger that prevents it from firing if the person triggering the flow isn't the author.  the trigger condition would look something like this

    @equals(triggerOutputs()['headers']['x-ms-user-email-encoded'], 'triggerBody()['Editor']['Email']')
  • DJanssen Profile Picture
    427 on at
    Re: Prevent non-uploader of starting a workflow

    Hi @Pstork1 ,

    Thanks for the reply this is nice food for thoughts! Do you perhaps also know if it's possible to compare those values in the if condition? I could then notify the user who clicked on the button that this document was not meant to send for him/her. 

    I'll discuss with my client what is preferred; a non responsive button or a notification. 

  • Verified answer
    Pstork1 Profile Picture
    68,678 Most Valuable Professional on at
    Re: Prevent non-uploader of starting a workflow

    Yes, you should be able to do that in a condition action inside the flow.  Its just comparing two values available in the trigger.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard