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
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!
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.
Hi,
Can you please try with Schema Name instead of name. See below image.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156