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

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