web
You’re offline. This is a read only version of the page.
close
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?

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    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

  • salmy Profile Picture
    on at

    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?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans