web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

Mobile App Offline JavaScript Xrm.WebApi.offline.createRecord()

(0) ShareShare
ReportReport
Posted on by 40

Hello,

I am attempting to create a record in Field Service Mobile while in offline mode.

using Xrm.WebApi.offline.createRecord(table,data) method the record is not being created.

I am not getting any errors. 

could not find any issues debugging using the following method.

https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/debug-javascript-code#debug-javascript-in-mobile-apps

I use the same 'data' variable when online using Xrm.WebApi.online.createRecord(table,data) method and the record is successfully created.

the table I am trying to create the record for is enabled in offline.

the tables associated with lookup columns I am populating with @odata.bind are all enabled for offline mobile and the records in those tables are in the offline profile.

I made sure all columns that are listed as required are included in my 'data' variable. 

pastedimage1679596201851v1.png

any insights to what I might be overlooking?

Thanks,

I have the same question (0)
  • Suggested answer
    Thomas David Dayman Profile Picture
    11,323 on at
    RE: Mobile App Offline JavaScript Xrm.WebApi.offline.createRecord()

    www.daymandynamics.com/.../

    Try and use mobile debugging to try and figure what is happening?

    I use the syntax Xrm.WebApi.createRecord(table,data) without the 'online' or 'offline' and it works for both online and offline mode.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 100 Super User 2025 Season 2

#2
Suresh Kulla Profile Picture

Suresh Kulla 72 Super User 2025 Season 2

#3
DAnny3211 Profile Picture

DAnny3211 54

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans