Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Lookup throws error when tried to open

Posted on by 170

Hi Experts,

   I am facing an issue. I have a lookup and I am populating the lookup when some other field is changed.

I am able to populate the lookup. But When I tried to save the case after the field is populated I am getting error. 

Here is the error: 

Record Is Unavailable

The requested record was not found or you do not have sufficient permissions to view it.

I am using below JS

var lookupValue = new Array();
lookupValue[0] = new Object();
lookupValue[0].id = "{52bae268-fa74-ea11-a811-000d3a3be5cf}";
lookupValue[0].name = "Ingham";
lookupValue[0].entityType = "county";
Xrm.Page.getAttribute("reportedbyorganizationid").setValue(lookupValue);

Any help would be appreciated.

Regards

  • Verified answer
    Rupesh Kumar Gupta Profile Picture
    Rupesh Kumar Gupta 170 on at
    RE: Lookup throws error when tried to open

    I found the issue.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans