Skip to main content

Notifications

Announcements

No record found.

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,

  • 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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans