cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerApper25
Level: Powered On

Is there anyway to get meta data values in collection ?

Hello,

 

I am manipulating datasource of CDS Entity with more than 2000 records through formulas in my powerapp, however for large data source I was recommended to use collection, so I did that, but, when I do that I am unable to use fields created through relationship and metadata fields like "Created By"

 

These fields are always blank in collection, and therefore I am unable to use them - is there any way to add fields in collection while create them to add data from the actual data source ? Or is there any alternative way ?

 

Cheers,

2 REPLIES 2
Highlighted
Super User
Super User

Re: Is there anyway to get meta data values in collection ?

Hi @PowerApper25 

It is not usually necessary to use collections for CDS entities as most functions are delegatable, even aggregating functions. delegation-of-aggregate-functions-for-cds/ .  I usually just see if I can use the datasources directly and consider using collections if I run into a problem. 

Community Support Team
Community Support Team

Re: Is there anyway to get meta data values in collection ?

Hi @PowerApper25 ,

The reason why you can't save some meta data values in collection  is that some of them is lookup fields.

For example, save created by filed should use:

ClearCollect(test,tablename.'Created By'.'Full Name')

However, meta data is read-only. You could display them in PowerApps, but you can't write data to meta data fields.

CDS is delegable data source, you could use it as data source directly.

Try to use delegable funtions.

Here's a doc about delegable funtions in CDS:
https://docs.microsoft.com/en-us/connectors/commondataservice/

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 331 members 5,069 guests
Please welcome our newest community members: