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)

On a form in a lookup field, without clicking of user on lookup, retrieve values of lookup using java script

(0) ShareShare
ReportReport
Posted on by

is this poosible?

Field 1 is lookup

FIeld 2 is lookup

On change of field1, using java script retrieve values for field2 and select 1st value in the list.

No click should be required by user on field2-lookup.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Rawish Kumar Profile Picture
    13,758 on at

    Hi Rohit,

    you will have to use web api to do that.

    rawishblog.wordpress.com/.../get-lookup-value-from-other-entity-and-set-it-on-the-form-using-web-api-in-microsoft-dynamics-crm-2016

    mark my suggestion as verified if helpful.

  • Suggested answer
    Clem Profile Picture
    2,541 on at

    Hello,

    Sure, you can add an "addOnChange" event on the field1 to trigger your function.

    In that function you have to query the webapi with the entity type you need, select the top 1 and push the retrieved result into the field.

    Regards,

    Clément

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