locked
Opening entity form using NavigateUri RRS feed

  • Question

  • Hi Experts,

    I am developing one silverlight application for CRM 2011.I have taken a HyperlinkButton ,clicking on which redirect to the corresponding entity form.

    And I check the form url is like below:

    http://crm:4545/MYORG/main.aspx?etc=10000&extraqs=%3f_CreateFromId%3d%257bDA209AF9-9921-E211-841B-080027E18CA8%257d%26_CreateFromType%3d2%26_gridType%3d10000%26etc%3d10000%26id%3d%257b844CAC06-AF2F-E211-94AB-080027E18CA8%257d%26pagemode%3diframe%26preloadcache%3d1354013804487%26rskey%3d240984295&pagetype=entityrecord

    Can you please suggests how I will write that in my NavigateURI?

    Tuesday, November 27, 2012 11:00 AM

Answers

  • Hi Experts,

    I have done this by experiment with different options.

    Below is the code :

    _serverUrl + "/main.aspx?etn=tech_program&id=%7b" + str + "%7d&pagetype=entityrecord"

    :.str is my variable which holds the RecordId.

    Thanks

    • Marked as answer by Ashis_K Tuesday, November 27, 2012 2:14 PM
    Tuesday, November 27, 2012 2:14 PM

All replies

  • Hi,

    Please check the following links-

    http://mahenderpal.wordpress.com/2012/02/08/open-crm-record-from-silverlight/

    http://srmscrm.wordpress.com/2012/11/05/new-window-opening-in-ms-crm-2011-silverlight/

    Tuesday, November 27, 2012 11:07 AM
  • hi,

    check this.


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

    Tuesday, November 27, 2012 11:16 AM
  • HI,

    Check this also


    hari

    Tuesday, November 27, 2012 12:28 PM
  • Hi Experts,

    I also written like below :

     hbtnPrChange1.NavigateUri = new System.Uri(_serverUrl + "/main.aspx?etc=1000&id=%7b" + str + "%7d&pagetype=entityrecord", System.UriKind.Absolute);

    Still it is throwing error.

    The error code is give below:

    http://crm:4545/MYORG/_common/error/errorhandler.aspx?BackUri=&ErrorCode=0x80041102&Parm0=%0d%0a%0d%0aError%20Details%3a%20

    The%20entity%20with%20ObjectTypeCode%20%3d%201000%20was%20not%20found%20in%20

    the%20MetadataCache.&RequestUri=%2fHP360V2DEV%2fmain.aspx%3fetc%3d1000%26id%3d%257b

    844CAC06-AF2F-E211-94AB-080027E18CA8%257d%26pagetype%3dentityrecord



    • Edited by Ashis_K Tuesday, November 27, 2012 1:22 PM
    Tuesday, November 27, 2012 1:15 PM
  • Hi,

    I want to open a record which has ContactId=id and Record Id =recId(for another entity sub entity of Contact) and etc=1000.

    Please help me to do this




    • Edited by Ashis_K Tuesday, November 27, 2012 1:56 PM
    Tuesday, November 27, 2012 1:54 PM
  • Hi Experts,

    I have done this by experiment with different options.

    Below is the code :

    _serverUrl + "/main.aspx?etn=tech_program&id=%7b" + str + "%7d&pagetype=entityrecord"

    :.str is my variable which holds the RecordId.

    Thanks

    • Marked as answer by Ashis_K Tuesday, November 27, 2012 2:14 PM
    Tuesday, November 27, 2012 2:14 PM