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

Nested Linking of entities on DataSet

Hi everyone! 

 

Is it possible to add nested linking of entities on Dataset?
Currently I can link entities using 

context.parameters.sampleDataset.linking.addLinkedEntity(...)

It's possible with fetchXml to add link-entity within a link-entity, is it possible with dataSet addLinkedEntity ?

1 REPLY 1
PowerApps Staff AnqiChen
PowerApps Staff

Re: Nested Linking of entities on DataSet

Yes, you could, we are writing samples, here is the sample:

// code snippet
var expression = {
name: "account",
from: "accountid",
to: "parentcustomerid",
linkType:"inner",
alias:"anyuniquealaisname ",
};

context.parameters.dataSetGrid.linking.addLinkedEntity(expression);
context.parameters.dataSetGrid.addColumn("new_additional_attributename", "anyuniquealaisname "); // anyuniquealaisname same as above
context.parameters.dataSetGrid.refresh();

 

If u need to get value of those linked entity columns, u could check the column name from

context.parameters.datasetGrid.columns,

then use

context.parameters.datasetGrid.records[recordId].getValue(<colum_name_u_want>)

 

Feel free to let us know your concern

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 190 members 5,291 guests
Please welcome our newest community members: