Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics 365 returns "Request message has unresolved parameters" when calling an action

(0) ShareShare
ReportReport
Posted on by 401

Hello,

I m getting the following error while calling an action in Dynamics 365 9.0 version

Request message has unresolved parameters

0572.123.PNG

Here is the code.

var parameters = {
"entityRecordId" : "4232901b-2fc5-e711-a898-0022480173bb",
"entityLogicalName" : "opportunity"
};

var req = new XMLHttpRequest();
req.open("POST", "https://org.crm.dynamics.com/.../Microsoft.Dynamics.CRM.new_OpportunityUpdate", 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) {
} else {
var errorText = this.responseText;
}
}
};
req.send(JSON.stringify(parameters));

*This post is locked for comments

  • luoyong Profile Picture
    on at
    RE: Dynamics 365 returns "Request message has unresolved parameters" when calling an action

    Yes, you can say that again.

    We've encountered such problems sometimes.

  • LaszloPenzes Profile Picture
    on at
    RE: Dynamics 365 returns "Request message has unresolved parameters" when calling an action

    Hi,

    I have the same problem. Making changes to a custom action usually breaks it by causing two kinds of issues:

    • The action temporarily responds with 204 No Content instead of the JSON with output parameters. It is probably some caching issue since after waiting for a few hours it works properly. Quite embarrassing when the project deadline is getting closer.
    • Execution fails with the message above, so Request message has unresolved parameters

    Based on the call stack (CrmODataRoutingConvention.SelectAction is the topmost method call) the system can't pick the action to execute. I get the same message if I just type any random action name.

    I'm testing my actions using RESTED Firefox extension, so the problem is for sure not caused by improper JS or wrong action name. Today I made an action, tested, worked ok. Changed it to be a template, created another action based on it and made a minor change (the value of a param of a step) => Request message has unresolved parameters.

    I've been facing the same error many times when I'm deploying custom actions to production environment. Works fine in dev env but fails in prod. Deleting and recreating the exact same action in production usually solves the problem.

    I have to say that custom action could be a very powerful feature if it wasn't so buggy...

    BR,
    Laszlo

  • Suggested answer
    Shahbaaz Ansari Profile Picture
    6,211 on at
    RE: Dynamics 365 returns "Request message has unresolved parameters" when calling an action

    Topic is the input parameter which i have define in my action, you can change the name accordingly

  • Suggested answer
    Shahbaaz Ansari Profile Picture
    6,211 on at
    RE: Dynamics 365 returns "Request message has unresolved parameters" when calling an action

    Hi Nitin,

    You can use below code,

    function CallAction()

    {

    debugger;

    var leadids = Xrm.Page.data.entity.getId();

    leadids = leadids.replace(/[{}]/g, "");

    var requestData ={

    "Topic" : {"leadid" : leadids, "@data.type":"Microsoft.Dynamics.CRM.lead"}

    };

    var requestMethod = 'POST';

    var actionnew = "leadid("+leadids+")/Microsoft.Dynamics.CRM.str_globalactionnew";

    var req = new XMLHttpRequest();

    req.open(requestMethod, Xrm.Page.context.getClientUrl() + '/api/data/v9.0/' + actionnew, true);

    req.setRequestHeader("Accept", "application/json");

    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");

    req.setRequestHeader("OData-MaxVersion", "4.0");

    req.setRequestHeader("OData-Version", "4.0");

    req.onreadystatechange = function () {

    debugger;

       if (this.readyState == 4) {

           req.onreadystatechange = null;

           if (this.status == 200) {

               alert("Action called successfully");

           } else {

               var error = JSON.parse(this.response).error;

               alert(error.message);

           }

       }

    };

    req.send(JSON.stringify(requestData));

    }

    If you find it helpful, Please Mark as Verified.

    Best Regards,

    Shahbaaz

  • Michel van den Brink Profile Picture
    4,697 on at
    RE: Dynamics 365 returns "Request message has unresolved parameters" when calling an action

    Hello,

    It looks like you are using a custom defined Action. 

    Can you please post the definition of the Action?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans