Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Call a javascript from a OOB function.

(0) ShareShare
ReportReport
Posted on by

Our users are working on a dashboard where there are queue items available to work on, when they are ready to work on an item they have to pick the queue item with the OOB pick button, once they are picking the item they have to go in the record to work on the item, I'm wondering if we can have a JS to automatically open the picked record?

  • salmy Profile Picture
    on at
    RE: Call a javascript from a OOB function.

    Thanks for your response, I followed your guidance with ribbon workbench and added as a parameter the Crm Parameter FirstSelectedRecord, but I'm getting the GUID of the object of the queue item, is there any way i can get the actual GUID of the queue item itself and not from the related object?

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Call a javascript from a OOB function.

    Hi salmy,

    Yes, you could do it. However, you need to override the OOB function of Pick Button with you custom JS function. Because when you pick queue item, there is a pop-up window and you could not bind your JS function to Pick Button in this window.

    Screenshot-2022_2D00_02_2D00_25-095104.png

    So you need to first customize the Pick Button's command by Ribbon Workbench.(Please backup your solution) Then you could open a conform dialog to ask users if they want to remove from queue or not. If yes, you need remove it first and then using navigateTo function to open the record. If no, you could just open the record.

    Here is the sample of navigateTo function:

    docs.microsoft.com/.../navigateto

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Adis Profile Picture

Adis 136 Super User 2025 Season 1

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 81

#3
Jonas "Jones" Melgaard Profile Picture

Jonas "Jones" Melgaard 77 Super User 2025 Season 1

Product updates

Dynamics 365 release plans