Hi,
I thought I was trying somethig simple but hey...
The idea is to create access rights on a SP Form by looking up a SP List that has the UserID and their relavant roles. The UIDs are "Person or Group" field, and the Role field is a dropdown list.
All I want to do is pickup the current 365 user on the SP Form (I've got that) and look it up to my SP List to check what role they have. The Lookup gives me an "Invalid Argument Type".
I sense it is a data format sort of issue. I've spent hours on this but no luck, if someone could help that'd be great - many thanks.
Solved! Go to Solution.
Hi Everyone,
I cracked it!!!
And the Winner is:
LookUp('SE Dwg AdminUsers', UserID.DisplayName = DataCardValue1.Selected.DisplayName, Role.Value)
Thank you everyone for your help - you saved me hours of research.
Hello,
The second part of the equation DatacardValue1.SelectedItems.DisplayName returns a table.
I think this is the issue.
Can you try DatacardValue1.Selected.DisplayName instead?
Thank you Mike8,
Yes, but UID is also a table record, that's why I don't get it 😐
IsBlank(LookUp('SE Dwg AdminUsers', UID = DataCardValue1.Selected.DisplayName).Role) still brings up the same red-underlined "=" sign and stating the "Invalid Argument Type".
No cigar I'm afraid. Any other ideas?
Try:
IsBlank(LookUp('SE Dwg AdminUsers', UID.DisplayName = DataCardValue1.Selected.DisplayName).Role)
What does it suggest if you add a point after UID?
Can you have UID.Value=DataCardValue1.Selected.DisplayName
I think you don't want to compare a table with a table. What you need is to compare a string from a table to an other string from an other table
Hi RandyHayes,
Thank you for your input.
The formula you suggested displayed a Warning icon with a "Warning Delegation..." message but returned a value "false" which is a breakthrough. Now I need to get the actual real value and used the following:
LookUp('SE Dwg AdminUsers', UserID.DisplayName = DataCardValue1.Selected.DisplayName, Role) which gets underlined in Red with a Warning icon with a "Warning Delegation..." but the field remains blank.
Hi Everyone,
I cracked it!!!
And the Winner is:
LookUp('SE Dwg AdminUsers', UserID.DisplayName = DataCardValue1.Selected.DisplayName, Role.Value)
Thank you everyone for your help - you saved me hours of research.
🙂
Ah yes, forgot your Role column probably was a choice column and then, yes, you'd need the .Value
Glad you got it.
Thanks so much! This helped me out also!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
208 | |
97 | |
60 | |
51 | |
51 |
User | Count |
---|---|
255 | |
158 | |
87 | |
79 | |
61 |