I have the example below where I need to see if a textinput is in a SharePoint list where a 2nd column contains two values.
Example:
'RequestList' - SharePoint List
'RequestList'.'Material' - The first column in my Sharepoint List
'RequestList'."OrderStatus' - The second column in my SharePoint List, this is a choice column.
DataCardValue1 - The text input I am trying to evaluate
I am attempting to write an If statement for an OnSelect property of a button. The evaluation needs to Check:
DataCardValue1.Text is in 'RequestedList'.'Material' where 'RequestedList'.'OrderStatus' is either "Pending Approval" or "Open".
Based on the result, I will then Update a context variable based on the result.
If(DataCardValue1.Text in "RequestedList'.'Masterial', UpdateContext({locVar1:true}), UpdateContext({locVar2:true}))
This works fine, but I cannot figure out how to also check the 'OrderStatus' column of this Material as well to determine if the OrderStatus column contains either of those two values for this record. Is this possible without being in a gallery as I am attempting to check for an existing record in SharePoint against a NewForm. Any help would be greatly appreciated.
Thank you,
Eric