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:
Solved! Go to Solution.
@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.
Take a Look into the doc from Microsoft.
@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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.