Skip to main content
Dynamics 365 general forum
Suggested answer

Get option set values from a lookup field's record using Javascript.

editSubscribe (0) ShareShare
ReportReport
Posted on by 105

Essentially, when an expense category is selected in the 'Quick Create: Expense' screen.
pastedimage1665156156936v1.png

Once the Category is selected this triggers the Javascript.

I need the Javascript on the quick create form to automatically get the option set value of the selected category's  'expense type'.

pastedimage1665156208538v2.png

Up to now, I've been using FetchXML to get values from lookup record, but I feel as though there is a cleaner method to do this I'm not aware of.
I don't have much experience with APIs, but would be willing to implement with the proper guidance.

I'm having a hard time finding an up to date breakdown of what I need to do. Could anyone here offer me guidance or a link to point me in the right direction?

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,305 Super User on at
    RE: Get option set values from a lookup field's record using Javascript.

    Hello,

    I would highly recommend using DataVerse RestBuilder tool for that operation - using it you will be able not only to build the right query but get a code snippet you will be able to use - github.com/.../DRB

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,068 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,591 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans