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

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Users online (4,822)