CRM 2011: Pass Variable through a Query String RRS feed

  • Question

  • I have a custom button that opens a new Contact record using window.open. My objective is to copy the First Name and Last Name fields into the new record with the button.

    I am going to need to do this for multiple records so I cannot simply just use "main.aspx?etc=2&extraqs=firstname%3DMike&pagetype=entityrecord"  because Mike will not always be the First Name.

    Does anyone know how to pass custom variables into the query string so that this function can be reusable?

    I have tried doing the following but it does not work:

     function HelloWorld()
    var f_Name = Xrm.Page.getAttribute("firstname").getValue();


    Does anyone know how to do this?


    • Edited by Michael Karls Thursday, July 21, 2011 7:38 PM grammar
    Thursday, July 21, 2011 7:31 PM


All replies