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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Ribbon button problem

(0) ShareShare
ReportReport
Posted on by 94


Hello ,

I have two buttons in home of incident and I open the same form with the two buttons.
The only difference is the value to pass it : if the departement have number 1(Customer Relationship) I hide the section of ticket and if the departement is 2 (Support).
My problems are in the ribbon ,when I put two javascript function to have the right form , one function (XrmCore.Commands.Open.openNewRecord to open the form )is executed and the not function in js file.
I try it with local storage no solution also when I try whith function whith consol.log I don't have any results
How Can I put the function XrmCore.Commands.Open.openNewRecord into the script and how the function will be executed when I click into the button ?

Thank's

Image 2

8308.2-buttons-_2B00_details-of-command_2B00_the-two-javascript-function.png

Image 1:

8308.OTHER.png

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Hi

    Instead of using internal CRM JS functions, you could consider using Xrm.Navigation.openForm

    ScreenClip-_5B00_636_5D00_.png

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/xrm-navigation/openform

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans