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

Announcements

No record found.

News and Announcements icon
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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans