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 Apps / Context Web Api Retrie...
Power Apps
Unanswered

Context Web Api RetrieveRecord method not implemented even with uses-feature WebAPI set

(0) ShareShare
ReportReport
Posted on by 5

I have a created a simple RetrieveRecord example in my new pcf application:

 

I call the following function from init:

public init(context: ComponentFramework.Context<IInputs>, notifyOutputChanged: () => void, state: ComponentFramework.Dictionary, container:HTMLDivElement)
{
this.makeRequestCrm(context);
}

 

async makeRequestCrm(context: ComponentFramework.Context<IInputs>) {
context.webAPI.retrieveRecord('account','xxxxx').then(
function success(result) {
console.log(result);
},
function (error) {
console.log(error);
}
);

 

I have set the web api feature in my input manifest xml:

    <feature-usage>
      <uses-feature name="WebAPI" required="true" />
    </feature-usage>
 
Is there something else I am missing ?

 

I have the same question (0)
  • MichaelFP Profile Picture
    1,847 Super User 2025 Season 2 on at

    Take a Look into the doc from Microsoft. 

     

    https://docs.microsoft.com/en-us/powerapps/developer/component-framework/sample-controls/webapi-control

  • Verified answer
    a33ik Profile Picture
    3,306 Most Valuable Professional on at

    @chigivigi08 where do you do your tests? It won't work in harness or in Canvas Apps but it should work fine in Model Driven App.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard