Hello All,
I am using a PCF control in canvas app, added a PCF control as a Code Component in Canvas App. The canvas app embedded in D365 form.
In my PCF I am trying to get ClientURL using below code:
let baseUrl = (<any>context).page.getClientUrl();
It works fine when I add the control on the form, but when I use the PCF control in Canvas App, it gives below error:
getClientUrl: Method not implemented.
I couldn't find any details to solve this issue.
Note: The purpose of, getClientUrl is do API call.
I tried using this as well but this also doent work:
(<any>this.Xrm).Utility.getGlobalContext().getClientUrl();
Your help will be much appreciated.
Thank you!
Hemant

Report
All responses (
Answers (