web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 0F/l+hZnMsFVhYUU0OpjLm
Power Apps - Power Apps Pro Dev & ISV
Answered

Best practice for distributing data change script with model-driven app solution

Like (0) ShareShare
ReportReport
Posted on 29 Dec 2021 19:51:37 by 306

We have a model-driven app that we distribute to clients in a managed solution.  Occasionally, there is a dataverse change made, like a new field added, that requires a sql script to populate or modify some data values.  We would want each client to run the script in SQL4CDS when they upgrade to the new solution version.  What is the best practice for distributing the sql script and getting the client to run it?  Is there a better way than to share the sql script along with the solution zip and adding a note to release documentation?  Should the sql script be included in the web resources perhaps?

 

Thanks for your input.

  • Verified answer
    a33ik Profile Picture
    3,304 Most Valuable Professional on 02 Jan 2022 at 10:00:35
    Re: Best practice for distributing data change script with model-driven app solution

    Hello,

    You can include SQL query to the solution as a part of the solution using one of webresources available but I don't see the practical need in it. I would say it's better to create some kind of KB on your website and include those queries there with detailed instructions on how to run queries using SQL4CDS.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2