Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Call a javascript from a OOB function.

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
    salmy 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
    Community Member Microsoft Employee 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans