Xrm.WebApi.offline (Client API reference)
Provides methods to create and manage records in model-driven apps in mobile clients while working in the offline mode.
For information about the mobile offline feature, see Configure mobile offline synchronization to allow users to work in offline mode on their mobile device
var offlineWebApi = Xrm.WebApi.offline;
Note
Use Xrm.WebApi.offline instead of the deprecated Xrm.Mobile.Offline namespace to create and manage records in the mobile clients while working in the offline mode.
The offlineWebApi object provides the following methods. When in the offline mode, these methods will work only for tables that are enabled for mobile offline synchronization and available in current user's mobile offline profile.
Important
While creating or updating record in the offline mode, only basic validation is performed on the input data. Basic validation includes things such as ensuring that the table column name specified is in lower case and does exist for a table, checking for data type mismatch for the specified column value, preventing records getting created with the same GUID value, checking whether the related table is offline enabled when retrieving related table records, and validating if the record that you want to retrieve, update, or delete actually exists in the offline data store. Business-level validations happen only when you are connected to the server and the data is synchronized. A record is created or updated only if the input data is completely valid.
Related articles
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기