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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Xrm.Utility.lookupObjects not working on D365 online

(0) ShareShare
ReportReport
Posted on by 5,421

Is anyone experimenting problems with Xrm.Utility.lookupObjects on a webresource?

I tried to use that on a new webresource, tried multiple approaches and keep receiving this error "LookupObjectsWithCallback is not defined"

the JavaScript is on a JS web resource and I can confirm ClientGlobalContext.js.aspx is correctly included because debugging the code I can see Xrm.Utility.lookupObjects is not breaking with "Can't recognize Xrm...". 

tried different ways to prepare the lookup object as it is documented here:

https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-utility/lookupobjects

Still no result. I've found one tutorial with 2 comments saying they experimented the same problem. Could be the last Microsoft update broke it?

 

I have the same question (0)
  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Hi

    I have implemented the lookup in few different entities and working as expected. Please see the code below. The example function below is triggered from a button on a subgrid and I have also used the similar function in other areas as well and all working as expected.

    pastedimage1600377894941v1.png

    Hope this helps

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    Could you please share your code to check this issue further.

    Please confirm if you have defined both callback function in your code.

    butenko.pro/.../

    Please mark my answer verified if i were helpful

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 144 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 59

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans