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

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!

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 

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 Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,352)