web
You’re offline. This is a read only version of the page.
close
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,

I have the same question (0)
  • Suggested answer
    Thomas David Dayman Profile Picture
    11,323 on at

    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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 73 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 42 Most Valuable Professional

#3
Scott Jackson UK Profile Picture

Scott Jackson UK 22

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans