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 / Issue working with par...
Power Apps
Answered

Issue working with parameters for RecordInfo()

(1) ShareShare
ReportReport
Posted on by 26
Hello,
I'm trying to check whether a record in my DataSource can be edited by the current user. To achieve so, the documentation mentions the RecordInfo() method, however I can't figure out why whatever I try to pass as the second argument (enum_inforecord), it always throws a "invalid argument" error.
I then tried to copy-paste the most basic example supplied by the documentation itself, but the error still appears.
 
Can you please help me figure out what's wrong?
 
Thanks
I have the same question (0)
  • Suggested answer
    Vish WR Profile Picture
    3,748 on at
    Hi Good Day 

    The issue you’re encountering is that RecordInfo() does not work with collections. It only works with records coming directly from a connected data source (such as a SharePoint list, Dataverse table, or SQL table) that has permission metadata available.

    In your example, you are using:

    Collect(MyCollection; [1; 2; 3]);
    RecordInfo(First(MyCollection); RecordInfo.DeletePermission)
     

    You need to call RecordInfo() on a record from your actual data source, for example:

    RecordInfo(
        First(YourDataSource),
        RecordInfo.EditPermission
    )

     
    RecordInfo(
        ThisItem,
        RecordInfo.EditPermission
    )
     

    RecordInfo() requires:

    1.  A live connection to the data source
    2. A record that includes permission metadata

     


     
  • licdar87 Profile Picture
    26 on at
    Thanks for your reply. 
     
    As I originally wrote, I first tried using that method directly against my DataSource, but I still receive the same error.
     
    This is a snippet of my code:
     
    RecordInfo(BrowseGallery1.Selected; RecordInfo.EditPermission)
     
    Where BrowseGallery1 is linked to a Sharepoint List and correctly shows my records
  • Verified answer
    WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    RecordInfo when used on a record only works for Dataverse (not SharePoint) as the metadata necessary is not present.
     
    Please Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like
    Visit my blog
    Practical Power Apps    LinkedIn  

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 Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard