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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show access denied mes...
Power Apps
Answered

Show access denied message, if submitter clicks that link in email.

(0) ShareShare
ReportReport
Posted on by 195

I have a Powerapps Editform with SharePoint as the datasource.

 

Submitter submits the record and an email is sent to the approver with the link of the EditForm. Whenever approver clicks the link, it opens the form correctly and able to approve. However, I noticed if i forward that email to submitter, submitter is able to access that link and open the form, which shouldn't happen.

 

Approver and submitter are 2 different roles maintained in 2 different Office 365 group. Any inputs would be helpful. Thanks.

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    You can use User().Email to check if the user's email is the same as the submitter for that form.

    Something like this:

     

    If(User().Email=YourSubmitterEmail,Notify("Access denied",Error))

     

    You can us this same formula to drive the logic to disable any control you'd like. 

    This would be on the form's OnVisible property.

  • Kumar9024021 Profile Picture
    195 on at

    @Anonymous 

     

    1. Whenever submitter submits the request, an email is sent to approver.
    2. Approver clicks on the link in the email, which opens up the form for approval. I tried adding this condition in OnVisible of Approve screen If(User().Email=YourSubmitterEmail,Navigate("Access denied Screen",None)). However, I cant use Navigate in OnVisible it seems. I can't use Notify('Access Denied, Error) because the submitter would see the form already which is meant to be seen only by approver. Hence tried using Navigate but doesnt work in OnVisible.

    3. Any alternative ways to acheive this ?

     

     

     

     

     

     

     

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    You could change the visible property of the form to this:

    If(User().Email=YourSubmitterEmail,false,true)

    So that the form is not visible for the user. 

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard