1

I am using the following DataSet Grid example:

https://docs.microsoft.com/en-us/powerapps/developer/component-framework/sample-controls/data-set-grid-control

The example allows me to upload a DataSet and then shows it into a grid.

I am trying to upload this DataSet through code to be loaded automatically on startup instead of doing it manually.

Is there a way to do do?

UPDATE:

My use case: I am willing to create a PCF component and use it on Dynamics CRM to generate a view for cases. I need the component to retrieve the cases from the CRM on startup so I can apply some logic on it and show it in the view. So far I can upload it manually and apply the logic.

Arun Vinoth
  • 20,360
  • 14
  • 48
  • 135
Pierre Ghaly
  • 667
  • 5
  • 17
  • Can you explain your use case? – Arun Vinoth Feb 25 '20 at 19:24
  • I am willing to create a PCF component and use it on Dynamics CRM to generate a view for cases. I need the component to retrieve the cases from the CRM on startup so I can apply some logic on it and show it in the view. So far I can upload it manually and apply the logic. @ArunVinoth – Pierre Ghaly Mar 01 '20 at 11:12
  • Any follow up questions? – Arun Vinoth Apr 04 '20 at 03:24

1 Answers1

0

I think you are talking about the PCF control harness scenario, debugging/testing the control with mock data. This is how it’s designed, to upload the mock data while testing. Read more

For dataset type components, you can load a CSV file with test data. You manually create or export in .csv format directly from your environment. Once a valid CSV file is available, it can be loaded

Once you upload the control in CRM, after entity/view configuration is done - then the control will render dynamic records from the CRM view based on existing filter criteria. The PCF component is just rendering a new UX/UI on top of existing data.

Arun Vinoth
  • 20,360
  • 14
  • 48
  • 135