locked
How to get GUID in dialogue? RRS feed

  • Question

  • I need a GUID of current record in dialogue? Is that possible?
    Monday, May 27, 2013 1:13 PM

Answers

  • You could not get the GUID of current record during the run of the dialog (I mean not manually). Instead you could use a JavaScript on your form to first get the GUID and then build your URL based on this GUID, and then run your dialog.


    My Weblog | My Website

    Monday, May 27, 2013 6:08 PM
    Moderator

All replies

  • Hi,

    can you please elaborate more your requirement. Are you talking about process dialog or any other?


    Thanks and Regards. Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    My Blog

    Monday, May 27, 2013 2:08 PM
  • Yes, process dialog. I need GUID of Campaign response so i can create URL to my custom web resource.( where i have some functionalists which i cant have in process dialog ).

    Monday, May 27, 2013 2:17 PM
  • Hi

    Example of process dialog URL:
    https://businessprocessesindynamicscrm.crm.dynamics.com/cs/dialog/rundialog.aspx?DialogId=8C5CE987-7653-4ADD-AF10-EC52147FF0DF&EntityName=systemuser&ObjectId=FC09123D-2A32-417A-BA08-5C76D99BEDF6

    https://businessprocessesindynamicscrm.crm.dynamics.com is the CRM organization URL.
    /cs/dialog/rundialog.aspx instructs CRM you want to run a dialog.
    ?DialogId=8C5CE987-7653-4ADD-AF10-EC52147FF0DF is a query string instructing CRM which dialog to run, identifying it by its GUID.
    &EntityName=systemuser&ObjectId=FC09123D-2A32-417A-BA08-5C76D99BEDF6 is another query string, this one specifying first the entity the dialog is written for, and then the GUID (“ObjectId”) of the record to run it for.

    So you can get the url of the current record from the url of the process dialog






    Thanks and Regards. Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    My Blog


    • Edited by Crm.Abhi Monday, May 27, 2013 3:41 PM
    Monday, May 27, 2013 3:08 PM
  • You could not get the GUID of current record during the run of the dialog (I mean not manually). Instead you could use a JavaScript on your form to first get the GUID and then build your URL based on this GUID, and then run your dialog.


    My Weblog | My Website

    Monday, May 27, 2013 6:08 PM
    Moderator
  • Still don't get it how i will get that URL inside dialog.

    I can create hyperlink inside dialog : <hyperlink><name>Update</name><value>https://crmdev.*****.com/skauric//skauric/%7B635052523430003236%7D/WebResources/new_UpdateLeadFromCR?data=crguid%3d{ActivityId(Campaign Response)}</value></hyperlink>

    Where {ActivityId(Campaign Response)} should be primary key for CampaignResponse but i get Subject of CampaignResponse in hyperlink.....



    • Edited by Shteva Tuesday, May 28, 2013 7:36 AM
    Tuesday, May 28, 2013 7:34 AM