Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

We disabled one of the admin account on crm 2016, getting user ID belongs to this is disabled error

(0) ShareShare
ReportReport
Posted on by 645

Hi All,

We have some customization developed on our CRM, to update the contact through other additional form using java scripts updates upon the form save. However no where in this java scripts, we can find the traces of one of the system account (system1) we recently disabled on our environment.

But when we disabled this system account(system1), during the contact update etc, We are facing below error. How to know, what is the reason for this. Is it possible to find this error information further.

systemid.jpg

example of JS been used is as below.

var entity = {};
entity.subject = "test";
entity["regardingobjectid_contact@odata.bind"] = "/contact(9CFBD4BD-CD4F-E811-A95A-000D3A1A9407)";
entity.responsecode = 3;

var req = new XMLHttpRequest();
req.open("POST", Xrm.Page.context.getClientUrl() + "/api/data/v8.2/contact", true);
req.setRequestHeader("OData-MaxVersion", "4.0");
req.setRequestHeader("OData-Version", "4.0");
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.onreadystatechange = function() {
    if (this.readyState === 4) {
        req.onreadystatechange = null;
        if (this.status === 204) {
            var uri = this.getResponseHeader("OData-EntityId");
            var regExp = /\(([^)]+)\)/;
            var matches = regExp.exec(uri);
            var newEntityId = matches[1];
        } else {
            Xrm.Utility.alertDialog(this.statusText);
        }
    }
};
req.send(JSON.stringify(entity));
  • Integration Profile Picture
    Integration 645 on at
    RE: We disabled one of the admin account on crm 2016, getting user ID belongs to this is disabled error

    Hi Bipin,

    Our related plugins are running calling user context. Do we still need to update anything in this plugins.

    640868.Capture.PNG

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,959 Super User 2024 Season 1 on at
    RE: We disabled one of the admin account on crm 2016, getting user ID belongs to this is disabled error

    Hi,

    Have you updated plugin steps from plugin registration tool ?

  • Integration Profile Picture
    Integration 645 on at
    RE: We disabled one of the admin account on crm 2016, getting user ID belongs to this is disabled error

    Hi Rod Rodriguez,

    Thanks for the response.

    I have updated all the workflows and custom actions where the old system account is owner to the new one. Still i was getting the error.

    For java script files and other web resources related to the customization done, are not showing any place to find the owner. Do we still require this file to re-upload with new system account.

  • Suggested answer
    RodRodriguez Profile Picture
    RodRodriguez on at
    RE: We disabled one of the admin account on crm 2016, getting user ID belongs to this is disabled error

    Howdy!

    Take a look at this article that goes over the issue you may be facing:

    https://d365demystified.com/2018/11/15/d365-quick-tip-why-should-you-reassign-records-to-another-user/

    Also, you might need to have that JavaScript deleted and replaced with a duplicate copy by a different (preferably a system user) account

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans