Skip to main content

Notifications

Announcements

No record found.

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

Could not find a property named 'cdm_company' on type 'Microsoft.Dynamics.CRM.systemuser'.

Posted on by Microsoft Employee

Here's the line in the javascript:

Xrm.WebApi.retrieveRecord("systemuser", currentUserId, "?$select=cdm_company").then(

I know it's there.  I even pulled it up in the metadata browser.  I don't know what to say.

FYI - this is a field added by the Dual Write managed solution.

TIA

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Could not find a property named 'cdm_company' on type 'Microsoft.Dynamics.CRM.systemuser'.

    and here is a classic example.  This doesn't work:

               Xrm.WebApi.retrieveRecord("systemuser", currentUserId, "?$select=cdm_Company,DomainName").then(

    ...but this does:

               Xrm.WebApi.retrieveRecord("systemuser", currentUserId, "?$select=cdm_Company,domainname").then(

    One schema name, the other database name!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Could not find a property named 'cdm_company' on type 'Microsoft.Dynamics.CRM.systemuser'.

    Yes.  It occurred to me overnight to try the schema name.  For some reason that doesn't seem to always be the requirement but, I could be mistaken.

    PS- I don't think your "Please..." merits subjunctive case.  I'm sure you are quite often helpful.

  • Verified answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Could not find a property named 'cdm_company' on type 'Microsoft.Dynamics.CRM.systemuser'.

    Hi,

    Can you please try with Schema Name instead of name. See below image.

    4705.CQ63.PNG

    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

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