web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Passing Parameter with dynamic value

(0) ShareShare
ReportReport
Posted on by 274

Hello,

I am working on passing a parameter value. The requirement is to read the value in the form for the specific attributes and pass that value in the quick create form/ or a ribbon button. For instance if field First Name = Jon, Last Name = Doe, Case Id: 12345, when a user click a button I want those fields with the value to out populate.

I appreciate the help!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Radu Chiribelea Profile Picture
    6,667 on at
    RE: Passing Parameter with dynamic value

    Hello,

    You can use the openForm method docs.microsoft.com/.../openform and set the form parameters

    Please see the example on this page: docs.microsoft.com/.../set-field-values-using-parameters-passed-form

  • MituCRMing Profile Picture
    274 on at
    RE: Passing Parameter with dynamic value

    Thank you Radu. The problem I am facing is I don't the value of the parameters to pass it as a static value. I was wondering if there is a way to do it dynamically?

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at
    RE: Passing Parameter with dynamic value

    Hi

    You can pass dynamic values to form as custom query string parameters.  You will have to define the parameter name and type on the form.

    ScreenClip-_5B00_744_5D00_.png

    Please follow the link below to know how this custom query string works

    docs.microsoft.com/.../configure-form-accept-custom-querystring-parameters

    And follow the link below to see example JS code to see how you can extract the value passed

    www.powerobjects.com/.../passing-parameters-between-forms-crm-2011

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Passing Parameter with dynamic value

    Another option , you can use browser local storage to  set dynamic value in parent page and get the value in quick create form local storage data.

    See Rawish's Blogs -

    passion4dynamics.com/.../populate-values-from-on-quick-create-form

  • MituCRMing Profile Picture
    274 on at
    RE: Passing Parameter with dynamic value

    Hi Goutam, thank you for the above link. I was wondering how i can implement for a lookup field?

  • gdas Profile Picture
    50,091 Moderator on at
    RE: Passing Parameter with dynamic value

    You need to store both lookup Id and name so that you can set the lookup value.

    community.dynamics.com/.../how-to-set-lookup-field-value-using-javascript-dynamics-crm

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans