Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

RibbonWorkbench - get entity value and use it opening a new window to display his content

Posted on by 1,255

Hello there,

I need a quick hand with something, i'm trying to read a value for an entity and pass it throught Ribbon Workbench to a button... all is working fine, but the value that i'm reading supposed to be a URL, so i need to pass that value to the action url but when i do it i get a new crm iframe open with the url of the crm and the value of the parameter... how can i reach this goal? its possible to pass that value to a new window with ribbon workbench?

Here a picture of what i'm seeing after set the values to the button.

solutionsatcustom-my.sharepoint.com/.../EmBvnjnktthFsygdmedZ-vQBoAgAGv1A5_0IhkJjrFbMIQ

capture2.png

and this is when i click on the button, and what i need is yes, open that window, but with the url i set on the CRM field value...

Capture.png

Any clue for me with this?

Thanks and many, many thanks in advance :)

*This post is locked for comments

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: RibbonWorkbench - get entity value and use it opening a new window to display his content

    As I mentioned you will have to move your logic to JS webresource, build url to open inside it, and open it using window.open method. Good luck.

  • Vile Andreas Rantala Profile Picture
    Vile Andreas Rantala 1,255 on at
    RE: RibbonWorkbench - get entity value and use it opening a new window to display his content

    Hi Andrew... thanks for the comment... looks my scenario is this:

    on opportunities i have a new ribbon button, and also have a javascript to retrieve a value (which is an url of a webservice), what i need to do is when i press the button get that value retrieved and open it on a new window for now, this is to test that the WS will be invoked correctly. i have all working less the open of the new window with the new url that i need to open.

    and sorry i miss the images wasn't displayed... here the folder of the images  solutionsatcustom-my.sharepoint.com/.../EmBvnjnktthFsygdmedZ-vQBoAgAGv1A5_0IhkJjrFbMIQ

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: RibbonWorkbench - get entity value and use it opening a new window to display his content

    Hello,

    I'm afraid to make that configurable you will have to instead of Open Url action will have to use call javascript. And to open a new form and pass something inside you can use Xrm.Utility.openEntityForm - mahadeomatre.blogspot.com/.../xrmutility-functions-openentityform.html in case you want to open some entity form.

    If this is regular url with parameter passed inside you will have to use window.open

    Feel free to describe your scenario and you will be helped.

    And update your screenshots - those are not shown on my side.

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans