SALES: 1-800-867-1380

Register job scripts

Updated: April 15, 2014

For a JavaScript backend mobile service, scheduled jobs are defined as JavaScript functions that are executed on the server. The name of the function must match the name assigned to the job when it was created. The JavaScript code is set in the portal or in the mobile service’s Git repository.

For a .NET backend mobile service, you define a job as a class in the Visual Studio project that inherits from the ScheduledJob class. This class is then registered in the Management Portal.

By default, new jobs are created in a disabled state. You should enable jobs after you have successfully tested them. Test new jobs by manually by clicking Run Once. Errors in job scripts are written to the logs.

For more information about how to schedule jobs, see Schedule backend jobs in Mobile Services

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft