Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

error in run dialog on ribbon button after copy or import and exporting the solution.

(0) ShareShare
ReportReport
Posted on by

Hello,

I am working on crm dynamics online.

I have custom run dialog button.that calls the dialog.

whenever i copy my instance or import and export solution from one instance to another then my dialog not work properly.then every time i need to update the server and organization name.

Is there any way to avoid this ?

*This post is locked for comments

  • RE: error in run dialog on ribbon button after copy or import and exporting the solution.

    Hi,

    Can you please share your js code?

    Thanks,

  • Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 on at
    RE: error in run dialog on ribbon button after copy or import and exporting the solution.

    Please share your JavaScript code now?

  • RE: error in run dialog on ribbon button after copy or import and exporting the solution.

    hi temmy & Ridhima

    it is not working :(

  • Suggested answer
    RE: error in run dialog on ribbon button after copy or import and exporting the solution.

    Hi nilam,

    You can use  Xrm.Page.data.refresh(); to refresh the page after success.

    Thanks,

  • Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 on at
    RE: error in run dialog on ribbon button after copy or import and exporting the solution.

    Test this one Nilam.

    Xrm.Utility.openEntityForm(Xrm.Page.data.entity.getEntityName(), Xrm.Page.data.entity.getId());

  • RE: error in run dialog on ribbon button after copy or import and exporting the solution.

    thank you, problem solved but if i want to refresh the page after success  then  what i  need to do?

  • Verified answer
    Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 on at
    RE: error in run dialog on ribbon button after copy or import and exporting the solution.

    Hi, yes you can. Just use Xrm.Page.data.entity.getId(). You can check this msdn.microsoft.com/.../gg334720.aspx to see.

  • RE: error in run dialog on ribbon button after copy or import and exporting the solution.

    Hello Temmy .

    According to your suggestion my JavaScript run correctly for one organization .when i import solution in another instance then it is not working.

  • Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 on at
    RE: error in run dialog on ribbon button after copy or import and exporting the solution.

    Hi Nilam. You must check first the dialogid and the objectid. Because it may be different each organization.

  • RE: error in run dialog on ribbon button after copy or import and exporting the solution.

    It gives me below error 

    Dialog-2.png

    here is my javascript

    function OpenInNewWindow(){

    var url = Xrm.Page.context.getClientUrl() + "/cs/dialog/rundialog.aspx?DialogId=%7b60F1414D-F4FD-4969-A799-CDDCFF40B7D6%7d"+
    "&EntityName=psm_quote&ObjectId=%7bDB506B10-87E4-E711-8141-C4346BDCAEF1%7d";
    window.open(url, 'blank');
    }

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans