I have an approval app that i want to be able to run a clearcollect to filter a gallery.
There are 4 approval levels in this, and i would like to do something like this:
i only want them to see items they are mentioned in. is there a way for a clearcollect to look through ALL the columns listed below and only grab the things that the current User().Email is associated with?
I was able to build one where it grabbed by creator already, but now i need to seek from many columns and im LOST.
I have a gallery like this already, but i think it would need to be a collection. im trying to avoid direct permissions or passwords
If(
varStatus = 1,
ApprovalCollection,
varStatus = 2,
Filter(
ApprovalCollection,
User().Email in 'First Approver'.Email ||
User().Email in 'Second Approver'.Email ||
User().Email in 'Specialty Approver'.Email ||
User().Email in 'Final Approver'.Email
),
varStatus = 3,
ColApproved,
varStatus = 4,
colDeclined
)
this one will work for the 4 level:
ClearCollect(
ApprovalCollection,
Filter(
'Purchase Approvals',
"Pending" in Status.Value
)
Thank you in advance!