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 CRM (Archived)

Set field values using parameters passed to a form

(0) ShareShare
ReportReport
Posted on by 397

Hi all!

I have a problem with passing values as parameters in URL. On salesorder entity I have URL field. In this field is URL to open window with new incident and pre-filled values (salesorder, customer). When I test URL (paste it to browser) it works. When I add sub-grid on contact's form with all contact's salesorders and view in subgrid contains URL field problems after click on URL it doesn't work.

exception is : Exception message: CRM Parameter Filter - Invalid parameter 'test_related_order={54173215-6BC5-E711-A97B-0036D8B71F1F}' 

URL is like:

[SERVER]/main.aspx?pagetype=entityrecord&etn=incident&extraqs=customerid={4E3792CE-6AC5-E711-A97B-0036D8B71F1F}&customeridtype=contact&customeridname=testContact&test_related_order={54173215-6BC5-E711-A97B-0036D8B71F1F}&test_related_ordername=testOrder

It is stored in encoded format. Here I used clean format to be more easy to read.

Changing order didn't help. fill only customer attribute also didn't help. I received similar exception with different invalid parameter like customeridname. name of attributes are right. I've user https://msdn.microsoft.com/en-us/library/gg334375.aspx to build URL.

it's CRM 365 on-premise 8.2

Any Ideas?

Thanks.

*This post is locked for comments

I have the same question (0)
  • ashlega Profile Picture
    34,477 on at

    Hi,

     which form is it trying to open when you see the error? Custom parameters are per form - do you have multiple forms for the case entity?

  • duchan Profile Picture
    397 on at

    Hi Alex,

    no I have only one form.

  • ashlega Profile Picture
    34,477 on at

    Also, you may need to encode those "&" characters to separate the parameters

  • duchan Profile Picture
    397 on at

    it's encoded. I put decoded version here to be better readable.

    url works ok from js for example. only subgrid is problem.

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    What kind of field is test_related_order?

    I am not sure, but it appears from your description this is a subgrid?

    Are you trying to filter the subgrid?

  • Community Member Profile Picture
    on at

    remove the customeridname and test_related_ordername from the paramters and try again

  • gdas Profile Picture
    50,091 Moderator on at

    Hi Duchan,

    Make sure you are passing  the parameters in below way.

      parameters["lookup field name"] = id;

      parameters["Filed lookup field name + name"] = Name;

    Hope this helps. Please make as answer if this resolve your issue.

    Thanks

    Goutam

  • Verified answer
    duchan Profile Picture
    397 on at

    I didn't find solution for this problem.

    If I pass one parameter, it's OK. If more, error is there. Parameters are reordered and it fail to parse it to correct form.

    I've created workaround with webresource. pass there as a parameter only record id and retrieve everything I need and open form from JS on that webresource.

    Thanks everyone for inputs. 

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans