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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Call bounded action by...
Power Pages
Suggested Answer

Call bounded action by WebApi in Power Pages

(0) ShareShare
ReportReport
Posted on by
Hi everyone,
 
I want to call bounded action by WebApi in Power Pages so I`ve tried to use code below but for some reason it shows me an error message. Could you please explain why I keep getting this error message?
 
shell.getTokenDeferred().done(function (s) {
 
      var inputJson = {};
      inputJson.InputCategoryId = "{{request.params.id}}";
 
      var inputstring = JSON.stringify(inputJson);
 
      var url = "https://<portalurl>/_api/contacts({{user.id}})/Microsoft.Dynamics.CRM.tttt_GetResourcesByContact";
      var xmlHttp = new XMLHttpRequest();
      xmlHttp.open("POST", url
        , true);
      xmlHttp.setRequestHeader('Content-Type', 'application/json');
      xmlHttp.setRequestHeader('__RequestVerificationToken', s);
 
      xmlHttp.onreadystatechange = function () {
        if (this.readyState === 4) {
          if (this.status === 200) {
          }
          else {
          }
        }
      };
 
Error message:
{
    "error": {
        "code": "90040100",
        "message": "Attribute {0} cannot be found for table {1}.",
        "innererror": {
            "code": "90040100",
            "message": "Attribute {0} cannot be found for table {1}.",
            "type": "InvalidAttribute"
        }
    }
}
Arguments:
 
Site settings:
 
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Fubar Profile Picture
    8,350 Super User 2025 Season 2 on at
    To check if it is actually a field that is not exposed.  in your Site Settings, change the field list to an asterisk * and see if the error goes away (if so your field list is not correct).  Note: for production it is more secure to not use the asterisk, and it is recommended to list the fields individually.
    Also, if a new field make sure you Published your dataverse chanhes
  • Suggested answer
    oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard