Call FetchXml Inside Custom Pages Without Flows – The PCF Way
Image Source: Shutterstock.com NetForce 365
Dec 2, 2022 7:47 PM

Call FetchXml Inside Custom Pages Without Flows – The PCF Way

External Blog Post

Recently I was working on a CustomPage and came across the need to be more flexible in fetching data from Dataverse.

Recently I was working on a CustomPage and came across the need to be more flexible in fetching data from Dataverse.I needed to call complex fetchXmls and CustomAPIs. For this blog I’ll talk only about fetching data, but my solution works also for calling CustomAPIs.

  • Way 1: use a PCF to retrieve data based on a fetchXml
  • Way 2: use a PCF to fetch the data, but the result is this time a dynamic output “object”

I love the “Way 2” – using the new dynamic output property, since the implementation inside the CustomPage gets really easy, clean and less error prone. I can imagine using it also to call CustomAPI requests (a small problem is that the “webAPI.execute” method is still not documented for PCFs, but it works).

Open full article