cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Draax
Resolver I
Resolver I

Missing CDS columns in PowerApps but appear in Flow

Hi!

 

In flow I can see the column _statuscode_label through the CDS connector:

Screenshot_1.png

 

In PowerApps it cannot be found as a column see:

Screenshot_2.png

 

What am I doing wrong?

Environment are Dynamics 365

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
v-siky-msft
Community Support
Community Support

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.

Snipaste_2020-04-21_17-55-18.png

Sik

View solution in original post

6 REPLIES 6
v-siky-msft
Community Support
Community Support

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!

v-siky-msft
Community Support
Community Support

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:

Snipaste_2020-04-21_09-34-28.png

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.

 

Screenshot_3.pngScreenshot_4.png 

v-siky-msft
Community Support
Community Support

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.

Snipaste_2020-04-21_17-55-18.png

Sik

View solution in original post

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:

 

Screenshot_5.png

 

Again, thanks a lot for your assistance!

 

Draax 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,951)