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 / Collection user info a...
Power Apps
Unanswered

Collection user info across screens issue

(0) ShareShare
ReportReport
Posted on by 233

Hello,

 

Currently when a tech logs into my app with their id Number the rest of the fields will auto fill with the users info. I created a collection containing the user info. the two fields I'm having issue with are the TechName and Access_Level.

 

I have textinput on other screen that I want to use the collection info for. (The Access_Level will only have a value of Admin or User.)

 If logged in as “User” the textinput will show the Techs name and the display mode will be in View mode. If logged in as Admin the textinput will be blank and in Edit mode.

 

My Collection:

ClearCollect(LoggedinUserInfo,{TechName:Tech_Name_TextInput.Text,TechID:'ID#_TextInput'.Text,Access_Level:Access_Level_TextInput_1.Text,TechEmail:Email_TextInput.Text,TechShift:Shift_TextInput.Text,TechWhse:WH_TextInput.Text,TechFacility:Facility_TextInput.Text,TechOrg:Org_Relation_TextInput.Text})

 

Right now, for the textinputs I am referencing the fields on the login screen to make this work but I get performance issues in the app checker. I want to pull the info from the Collection but I cant get it to work.

This is what I'm currently using.

//Displaymode
If(Access_Level_TextInput_1.Text= "User",View,Edit)
//Default
If(Access_Level_TextInput_1.Text= "User",Tech_Name_TextInput.Text,"")

 

This is what I would like to use but these are not working.

//Displaymode
If(LookUp(LoggedinUserInfo,Access_Level="User",Access_Level)="true",DisplayMode.View,DisplayMode.Edit)
//Default
If(LookUp(LoggedinUserInfo,Access_Level="User",Access_Level)="true",LoggedinUserInfo.TechName,"")

The displaymode formula doesn’t give any errors but even when logged into the app as a “User” I’m able to edit the textinput on the next screen.

The default, but the formula is not correct and I get “the function ‘If’ has some invalid arguments”.  

 

Thanks for any Help you can give me. 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,012 Most Valuable Professional on at

    Hi @Chrisguff12 ,

    Have you considered setting a Variable for the User record

    Set(
     gblUser,
     LookUp(
     YourReferenceList,
     YourUserField=User().FullName
     )
    )
    

    then DisplayMode 

    If(
     gblUser.YourTypeField= "User",
     View,
     Edit
    )

    Default

    If(
     gblUser.YourTypeField = "User",
     User().FullName,
     Blank()
    )

     

    Please click Accept as solution 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.

    Visit my blog Practical Power Apps

     

  • WarrenBelz Profile Picture
    153,012 Most Valuable Professional on at

    Hi @Chrisguff12 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution 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.

    Visit my blog Practical Power Apps

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 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard