cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BlackRos
Frequent Visitor

Two option set comparition

   I have to compare a number with an Option Set field, like the following 
statement in a condition but it fails    
3 in Team.poste_portfoliohierarchy        Any help?
 
3 REPLIES 3
v-siky-msft
Community Support
Community Support

@BlackRos 


Do you mean the 'poste_portfoliohierarchy' is an OptionSet field and you want to check if the 3 is in that field?
Is '3' one of the Options of 'poste_portfoliohierarchy' field?

If so, the codes should be: 

'poste_portfoliohierarchy(Team)'.'3' in Team.poste_portfoliohierarchy

Snipaste_2020-02-11_17-44-36.png

Sik

 

 

I have this statement

ClearCollect(
UfPost;
Filter(
UtentiCol;
Userid = systemuserid
).'Team (teammembership_association)'.'Ufficio Postale'.'poste_name';
false in Team.poste_isportfolioservice &&
3 in Team.poste_portfoliohierarchy &&
0 in Team.poste_portfoliotype &&
false in Team.isdefault && "dico_" in Team.name
)

 

Here

3 in Team.poste_portfoliohierarchy &&
0 in Team.poste_portfoliotype &&

not working

 

Team.poste_portfoliohierarchy is a option set

Team.poste_portfoliotype too

 

Sorry, your

'poste_portfoliohierarchy(Team)'.'3' in Team.poste_portfoliohierarchy.Team

not working

 

Can i verify anithing for you?

@BlackRos 

Are 3 and 0 an option in the options set?

What is the option set name? (Option set name could be different from the Option set field name)

Could you share the more about the OptionSet field as follows? 

Snipaste_2020-02-12_11-17-39.png

 

What I can tell you is the syntax:

 

'option set name'.'3' in EntityName.'option set field name'

 

Snipaste_2020-02-12_11-19-23.png

Sik

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Users online (4,720)