cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

Re: Missing CDS columns in PowerApps but appear in Flow

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
Highlighted
Community Support
Community Support

Re: Missing CDS columns in PowerApps but appear in Flow

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

 

Highlighted
Resolver I
Resolver I

Re: Missing CDS columns in PowerApps but appear in Flow

@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!

Highlighted
Community Support
Community Support

Re: Missing CDS columns in PowerApps but appear in Flow

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

 

Highlighted
Resolver I
Resolver I

Re: Missing CDS columns in PowerApps but appear in Flow

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 

Highlighted
Community Support
Community Support

Re: Missing CDS columns in PowerApps but appear in Flow

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

Highlighted
Resolver I
Resolver I

Re: Missing CDS columns in PowerApps but appear in Flow

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
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (12,350)