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 / Need Help: OnStart Col...
Power Apps
Unanswered

Need Help: OnStart Collection for User Permissions in Dataverse Table, displaying "This datatype is unsupported for Evaluation"

(0) ShareShare
ReportReport
Posted on by 42

Hello,

 

Background:

I am working to create a timetracking powerapp for our department to use in entering time weekly spent in projects and other operational and administrative activities.  

 

I am working on setting up the OnStart application variables, many of which will be used in establishing the users permissions, and necessary dropdowns within the app.  I have a table in Dataverse where I have entered in user data (Email, Employee ID, Name) along with 3 columns that are "yes/no" type for their permissions as a timesheetresource, manager, and administrator.  

 

My goal is to pull the user into the collection, get their info from this table, and use an IF statement to define their permissions within the app.

 

However, what I noticed after getting the collection setup is that the fields in Dataverse setup as boolean ("yes/no" in dataverse) are showing in the collection as "This data type is unsupported for evaluation".  

 

QUESTION:

 

Can someone advise how I can pull into the collection these boolean values from dataverse, or if there is another way I should go about setting this up?

 

PowerApp_Chaos_0-1714775471128.png

 

PowerApp_Chaos_1-1714775669247.png

 

Also, as a side-note, I tried comparing the email in the table using filter against the email collected in the above collection variable called colUser, however when I attempted to do so it gave an error that it cant pull from a table.  So instead I simply pulled in the users email into the filter criteria.  I imagine this is because you can't use an array in a filter comparison operation.

 

 

 

I have the same question (0)
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @PowerApp_Chaos - I am not clear on where/how you're going to use your Yes/No columns, but you can certainly return their values from that Collection.

     

    E.g. for the Items property of a Gallery control you can use:

     

    Filter(
     colPermissions,
     crb01_ismanagement = 'Is Management (Your Table Plural Name)'.Yes
    )

     

    Or in a LookUp:

     

    LookUp(
     colPermissions,
     'Is Management'
    )
  • PowerApp_Chaos Profile Picture
    42 on at

    @Amik, I need to use this in the collection OnStart to get the users row from the permissions table, and identify what permissions they have

     

    Each column is a Yes/No checkbox in the Dataverse where the admin can check whether the listed user should have access in the timetracking app as a timesheet submitter, a manager, or an administrator, by selecting YES or NO.

     

    How can I get it to show the Yes/No value contained within this field in the collection?  When I load the table those fields/columns only show up with that error message, that they can't be evaluated

  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @PowerApp_Chaos - That is not an error message. It simply means that the value of a complex type cannot be displayed for you in the preview bar (because they are complex data types). Look at the examples I already gave you, they will return the value of those data types.

     

    Suppose for example I want to check if the logged in user's record has "Is Management" checked, I can simply use:

     

    LookUp(
     colPermissions,
     'Your People Field'.'Primary Email' = User().Email,
     'Is Management'
    )
  • PowerApp_Chaos Profile Picture
    42 on at

    I tried this, as a test, against the table in Dataverse, and it doesn't work.  You can see below that when I assign the lookup to a variable it returns the value "This Datatype is Unsupported for Evaluation"

    PowerApp_Chaos_0-1714785498941.png

     

  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @PowerApp_Chaos - apply "varUserOne" onto the Text property of a Label control and observe what happens. 

     

    Or if you must display the value in the Preview bar, use:

     

    Set(
     varUserOne,
     Text(
     LookUp(
     REF_Timetracking_UserPermissions,
     ResourceEmail = Lower(User().Email),
     IsManagement
     )
     )
    )

     

  • PowerApp_Chaos Profile Picture
    42 on at

    Sorry, I appreciate your help,but it still does not work, even when applied to a label

     

    PowerApp_Chaos_1-1714786904168.png

     

     

    PowerApp_Chaos_0-1714786809962.png

    It just shows up as a blank value

  • PowerApp_Chaos Profile Picture
    42 on at

    Apologies, I refreshed my PowerApp browser and it suddenly started working.  For some reason it wasn't showing previously no matter what I did,

  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @PowerApp_Chaos - has your question now been resolved?

     

    On a separate note, I would suggest creating custom security roles and assigning relevant users to those roles. You can then identify the security role for the current logged user of the app session and use that to run whatever logic you need.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard