cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos

Allow Nested Linking of Entities on DataSet

Currently, there is no support for nested entity linking on a PCF bound dataset. This is prohibitive of complex filtering for rich components.

I would suggest an API similar to the following:

 

dataset.linking.setLinks([{
    name: "entity_b",
    from: "entity_aid",
    to: "entity_aid",
    linkType: "inner",
    alias: "ab",
    links: [{
        name: "entity_c",
        from: "entity_bid",
        to: "entity_bid",
        linkType: "inner",
        alias: "ac"
    }]
}]);

 

Which would translate to FetchXML similar to the following:

 

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
  <entity name="entity_a">
    <attribute name="name" />
    <link-entity name="entity_b" from="entity_aid" to="entity_aid" link-type="inner" alias="ab">
      <link-entity name="entity_c" from="entity_bid" to="entity_bid" link-type="inner" alias="ac">
      </link-entity>
    </link-entity>
  </entity>
</fetch>

 

Related to question raised by @JoshuaRobert and @JoCas 

Status: New