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 Automate
Unanswered

Get List ID

(0) ShareShare
ReportReport
Posted on by 1,146

Thank you for taking the time to read my question.

 

I have a few lists in my SharePoint site. I also have a PowerApps app that adds records to one of the lists. I want to secure my data so I've added 2 groups to my SharePoint site. DataReader and DataWriter. Users are in DataReader so that they cannot go to the SharePoint site and edit the data.

 

What I want to do is use a Flow to add the data to my SharePoint list. To do this I want to send the users name to the Flow from my app, then I want to Grant them permissions to the list, add the record, then remove their permissions.

 

In Flow I see:

1. Grant Access to and Item or Folder

2. Stop Sharing and Item or File

 

In both cases I'm asked for an ID. I'm guessing this is the ID of the list in my SharePoint site. This value must be an integer not something from the URL of the SharePoint site.

 

I have no idea how to get this ID. Any help would be greatly appreciated.

 

ListID.png

 

Thanks

Categories:
I have the same question (0)
  • jinivthakkar Profile Picture
    4,187 on at

    @iwonder The ID required here is the ID of the list item for which you want to grant access or stop access.

    I see you the flow is getting triggered from power apps, so you can pass the ID as a parameter to the flow and then dynamically refer the ID in the actions.

     

    Check this link https://www.c-sharpcorner.com/article/how-to-trigger-flows-email-on-button-click-in-powerapps/

     

    which sends parameters from powerapps to flow.

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • sudharsan1985 Profile Picture
    1,325 on at

    @iwonder The ID required is the Unique Id which is not an integer, it's a GUID. Also, I am wondering why granting permission before adding an item and then removing the permission. I am not sure whether this is the right way to do it. Maybe instead of doing this, you can hide the list from the browser. Use SharePoint designer and choose the settings for the list to hide it from the browser view. So when the user browse the site contents, they won't see the list.

     

  • iwonder Profile Picture
    1,146 on at

    Hi @jinivthakkar 

     

    Thank you for your reply. So these actions refer to the row level not the list itself?

     

    Thanks

  • iwonder Profile Picture
    1,146 on at

    Hi @sudharsan1985 

     

    When I type in values into the ID field I get an error if I do not type in a whole number. If I type 1.2 I get an error, if I type D I get an error. If I type 5, no error.

     

    The reason I want to do this is for data security. I don't want users going to the SharePoint site and editing the data in SharePoint directly. I need to control it through PowerApps. I also don't want them to be able to make their own app using the shared connection that they have access to and edit data that way. I need to ensure data security as these records will be used for audit purposes. So if I make this flow it will be that much more difficult for users to create a new app using the same connection to edit data. They can read it but not change it.

     

    Thanks!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard