Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Passing Parameter with dynamic value

(0) ShareShare
ReportReport
Posted on by 270

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

  • gdas Profile Picture
    gdas 50,087 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

  • MituCRMing Profile Picture
    MituCRMing 270 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?

  • Verified answer
    gdas Profile Picture
    gdas 50,087 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

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,050 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

  • MituCRMing Profile Picture
    MituCRMing 270 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
    Radu Chiribelea Profile Picture
    Radu Chiribelea 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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans