Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Populate CDS custom entity once a day with external app database



I have one external app (SQL based) and one power apps app (CDS based).


Basicaly, I would like to synch once a day some rows based on certain criteria from my external app to the CDS Custom Entity.


The reason is to avoid to input twice the same "kind" of information in the Power Apps application for given criteria and so users can also populate the CDS Entity throught the application from power apps on other circumstances.


So my question is simple, is there a way somehow to achieve this ?


Kind regards,

Mohammad PATEL

Kudo Kingpin
Kudo Kingpin

Have you considered using data flows? You can periodically load the data from a variety of sources and import it into CDS. You can also perform data transformation during the process. 

For more info, visit the below link:


For your scenario, the data source would be SQL DB.  Please mark it as answer if my post helps.


Satish Reddy


Hi @mmp974 


The suggestion from @Satish-Reddy is good but there are limitations of scheduled dataflows when it comes to Look-up fields.  If the entity you are populating with a dataflow is used as a Look-up on a related entity then the dataflow will clear the Look-up field on each refresh since it completely deletes the data and adds in back in again - breaking the Lookup.


Another option, which is more work but you have more control is to use Power Automate.  Take a look at this article to get you started.  It's about using Power Automate to integrate data from a CSV to Dynamics 365 but the principles are the same and Dynamics 365 uses the CDS connector for Power Automate.


@HSheild  Good to know about the limitation. Thank you.


@mmp974 You can try @HSheild  solution. 

If you want a custom solution, I have written XrmTooling console application that loads the data from CSV and creates the records in CDS. I can share the source code with you. 

Helpful resources

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,917)