Skip to main content

Notifications

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans