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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Context Web Api Retrie...
Power Apps
Answered

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,999 Moderator 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard