Notifications
Announcements
Hi All,
I am developing a PCF control and the requirement is to make it work in the offline as well in the mobile app. I am trying to use
Xrm.webApi.offline.retrieveMultipleRecords but when I was debugging I was unable to find the offline keyword, wanted to know if this is really supported or If I am missing anything.
Please help
Thanks
Shayan
Hi @Shayanrs31 ,
Inside a PCF it's not supported to work with the Xrm object.
In order to use the webAPI, you need to enable the webAPI feature in the manifest:https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/uses-feature
Then you will get the context.webAPI (Context - Power Apps | Microsoft Docs) for making webAPI requests.
This should work offline too (didn't tested it yet though), but is available only for model-driven apps.
Kind regards,
Diana
I
Thanks a lot for the response.
The way I am currently doing is
Hi Diana,
I did try to check the control in offline mobile but the control isn't visible any idea what I could be missing or is pcf control supported offline ?
Many thanks ,
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268