Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

is there any alternative way to replace xrm.webapi.offline ?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

hi,

in my mobile offline mode,  i can use xrm.webapi.offline to retrieve data.   but it's an Async call, it's not suitable in "addPreSearch"  event handler.

while XMLHttpRequest can only be used in online mode.   what should i do?  any suggestion?

thanks

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: is there any alternative way to replace xrm.webapi.offline ?

    i see, but XMLHTTPRequests cannot be used in mobile offline.  What can i do ?    

  • Suggested answer
    pavanmanideep Profile Picture
    pavanmanideep 1,329 on at
    RE: is there any alternative way to replace xrm.webapi.offline ?

    It is not possible to add "addPreSearch"  or any custom events to Xrm.WebAPI.online/offline as they were asynchronous as you mentioned..

    You should work with XMLHTTPRequests only...for more information, check below post...

    stackoverflow.com/.../addpresearch-filter-not-applying

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans