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

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
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.

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.

Top Solution Authors
Top Kudoed Authors
Users online (2,810)