Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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 ?

 

  • Verified answer
    a33ik Profile Picture
    3,304 Most Valuable Professional on at
    Re: Context Web Api RetrieveRecord method not implemented even with uses-feature WebAPI set

    @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.

  • MichaelFP Profile Picture
    1,831 Super User 2025 Season 1 on at
    Re: Context Web Api RetrieveRecord method not implemented even with uses-feature WebAPI set

    Take a Look into the doc from Microsoft. 

     

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

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!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 81 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 53 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 48

Overall leaderboard