Hi!
In flow I can see the column _statuscode_label through the CDS connector:
In PowerApps it cannot be found as a column see:
What am I doing wrong?
Environment are Dynamics 365
Thanks in advance!
Solved! Go to Solution.
Hi @Draax ,
How about this:
Filter(Accounts,statuscode='statuscode (Accounts)'.'Active')
When you enter statuscode in filter code as below, the system will recommend two options, select option set name.
Sik
Hi @Draax ,
I believe 'StatusCode' field is a Option Set type field.
The option set is made up of two fields, value and label. However, In PowerApps, we can only reference the Label of Option Set.
The right syntax:
ThisItem.statuscode
Hope this helps.
Sik
@v-siky-msft Hi and thanks for your reply!
So in a combobox or a gallery it is not possible to filter out inactive accounts?
Since This.Item is not available in the filter query.
Thanks in advance!
Hi @Draax ,
If you want to filter the gallery based the option set value, please try this code:
Filter('EntityName', StatusCode='StatusCode (EntityName)'.'Inactive')
Or
Filter('EntityName', 'Status Code'=[@'Status Code'].'Inactive')
Here is an example, TwoOption is option set field in Account entity:
Hope this helps.
Sik
Many thanks for your reply Sik,
Unfortunately it did not work, powerapps will not recognize:
[@'statuscode']
[@statuscode]
[@'Status']
[@Status]
Do you have more ideas? I'm completely stuck here.
Hi @Draax ,
How about this:
Filter(Accounts,statuscode='statuscode (Accounts)'.'Active')
When you enter statuscode in filter code as below, the system will recommend two options, select option set name.
Sik
Hi @v-siky-msft ,
Your assistance have been much appreciated, you're very knowledged.
It seems like PowerApps converts statuscode to 'Status', in the end this formula worked:
Again, thanks a lot for your assistance!
Draax
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
201 | |
71 | |
49 | |
43 | |
30 |
User | Count |
---|---|
255 | |
121 | |
86 | |
84 | |
84 |