web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error while calling Action through Web Api

(0) ShareShare
ReportReport
Posted on by 15

i am trying to call Action created for Phonecall through the Web API using below code.

var data = {

 

          "GenderId": "77142D3D-96EB-E711-8116-5065F38A5B01"

      };

 

      var req = new XMLHttpRequest();

 

      // specify name of the entity, record id and name of the action in the Wen API Url

      req.open("POST", serverURL + "/api/data/v8.2/phonecalls(97953273-B496-E711-8111-5065F38A6AD1)/Microsoft.Dynamics.CRM.new_UpdateCustomFieldinPhonecallthroughAction", 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 () {

          if (this.readyState == 4 /* complete */) {

              req.onreadystatechange = null;

              if (this.status == 200) {

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

                  alert(data);

              } else {

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

                  alert(error.message);

              }

          }

      };

 

      // send the request with the data for the input parameter

      req.send(window.JSON.stringify(data));

But i am getting error :- 

No HTTP resource was found that matches the request URI while calling ms crm action through javascript

Kindly suggest some solution is some one has faced the same issue

*This post is locked for comments

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans