Hi @hkmamun :
Could you tell me:
- Does the 'SupportPerson' field allow multiple sellections?
- Whether to assign a value to the isSupportPerson variable based on whether MyProfile.Mail exists in SupportPerson?
Firstly,let me explain why you encounted this error.
The value of SupportPersonList.SupportPerson is a list of sub tables.Directly referencing a field in a list of sub-talbes will result in a syntax error.
The correct way is to traverse the records in the data source.
Secondly,please try these soutions:
Case 1:Multiple choices are not allowed.
Please try :
If(MyProfile.Mail in ForAll(SupportPersonList.SupportPerson,SupportPerson.Email),Set(isSupportPerson,true),Set(isSupportPerson,false));
Case 2:Allow multiple choices.
If(MyProfile.Mail in Ungroup(ForAll(SupportPersonList.SupportPerson,SupportPerson.Email),"Value"),Set(isSupportPerson,true),Set(isSupportPerson,false));
Best Regards,
Bof