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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How do I limit which u...
Power Apps
Unanswered

How do I limit which user can see certain elements of the Sharepoint list custom form?

(0) ShareShare
ReportReport
Posted on by 18

Hey, I'm working on a little project where me and my boss want to enable the employees, to submit their projects automatically via a list of projects in Sharepoint. Each project is assigned a "Responsible person" and we want him to be able to submit the finished product via customized list form and we want only the Responsible person to be able to see the attachments window. I've created the flow CheckAuthority in PowerAutomate, to verify that the user is in fact listed as the Responsible person which is below:

2023-06-29 15_10_05-Edit your flow _ Power Automate.png

It asks in PowerApps for the email of the current user and for the Index of the item in the list, so that it can then compare emails of the current user and the user, that is listed as responsible person for this specific project. I call this flow with <Set(Value, CheckAuthority.Run(User().Email, DataCardValue9.Text))> in the <On visible> property of the FormScreen and with <If(IsBlank(Value) = false, true, false)> in the <Visible> property of the Attachments window.

I keep getting the error "The method 'Run' has an invallid value for parameter 'Getitem_Id'". I have no idea what goes wrong and why this report message.

 

Categories:
  • developerAJ Profile Picture
    4,763 on at

    CheckAuthority.Run(User().Email, Value( DataCardValue9.Text))

     

    assuming DataCardValue9.Text is SharePoint ID 

     

    and also you dont need to use Flow for your requirement you can achieve the expectations with powerapp itself

     

    Please click Accept as solution and give it Thumbs Up if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    You can connect with me on LinkedIn

  • KarlXII Profile Picture
    18 on at

    I tried this, it didn't work. I'll look into getting this to work without a loop.

  • TruePowerApps20 Profile Picture
    48 on at

    I agree with DeveloperAJ that you should be able to achieve this same thing within PowerApps itself and it will likely function a lot better. From my experience running flows like this add a lot of overhead and unnecessary wait times for things to process. I would have to have a clearer understanding of the application and your requirements to give more concrete advice, but I would suggest looking at adding more controls on the PA side.

  • developerAJ Profile Picture
    4,763 on at

    are you still receiving the error

  • KarlXII Profile Picture
    18 on at

    Yes

  • developerAJ Profile Picture
    4,763 on at

    CheckAuthority.Run(Value( DataCardValue9.Text),User().Email)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard