---
sourceDocument: Australia Field Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/field-service-management

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia Field Service Management

ft:clusterId :

    - fsm

bundleId :

    - fsm

workflow :

    - Customer and Industry


---

# Allow agents to start traveling before shift

# Allow agents to start traveling before their scheduled work hours {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

Support flexible work types by allowing agents to start traveling before their scheduled work hours. For example, you may want to add travel time outside of an agent's scheduled work hours in case bad weather suddenly increases travel time.{#set-agent-schedule-preferences__add-agent-travel-time-work-hours}

## Vorbereitungen

If you are an administrator, you can run a script and add travel time outside of work
hours for all users.

Role required: wm_dispatcher, wm_manager, wm_admin, or admin

## Prozedur

1. Navigate to AllField Service.
2. Do one of the following actions:
   * If you are a dispatcher, go to DispatchingMy Agents.
   * If you are a manager, go to ManagerMy Team.
   {#set-agent-schedule-preferences__choices_e52_c4c_nsb}
3. Select a user profile.
4. To add or update user records, do one of the following.

   | Option | Description |
   | Add a new record for this user | 1. Click the Work Parameters tab. 2. Click New. 3. Click the Travel outside of work hours drop-down menu. 4. Click Yes 5. Click Submit. {#set-agent-schedule-preferences__ol_avt_xzm_vgb} |
   | Updated an existing record | 1. Click the Work Parameters tab. 2. Double-click the Travel outside of work hours column. 3. Click the new parameter. 4. Click Save (Enter). {#set-agent-schedule-preferences__ol_gng_41n_vgb} |
   |-|-|

   {#set-agent-schedule-preferences__choicetable_pnx_tzm_vgb}
5. To add travel time as work hours for all users, do the following:
   1. Navigate to System DefinitionScripts - Background
   2. In the Run Script window, add the script to include travel time as work hours for all users.  
      {#set-agent-schedule-preferences__table_jsx_f4c_nsb__entry__2}

      | Option | Description |
      |-|-|
      | Add travel time as work hours for all users | 1. Add this script: createWorkParamsForAllAgents("yes"); function createWorkParamsForAllAgents(travelOutsideWorkHours) { var now_GR = new GlideRecord("sys_user_has_role"); gr.addEncodedQuery("role=26c324ba1b32200096f9fbcd2c0713c2"); // fetching users having wm_agent role gr.query(); gs.info("total work agents found: "+gr.getRowCount()); var agentWorkParameter = {}; while (gr.next()) { var userId = gr.getValue("user"); if (!agentWorkParameter[userId]) { var wp = new GlideRecord("wm_agent_work_configuration"); wp.initialize(); wp.setValue("user",userId); wp.setValue("travel_outside_of_work_hours", travelOutsideWorkHours); // setting default value for travel_outside_of_work_hours wp.insert(); agentWorkParameter[userId] = true; } } } 2. Click Run Script. {#set-agent-schedule-preferences__ol_x41_kcn_vgb} |
      | Update travel time as work hours for all users | 1. Add this script: updateWorkParamsForAgents("yes");  // param1: default travel outside work hours value function updateWorkParamsForAgents(travelOutsideWorkHours) { var now_GR = new GlideRecord("wm_agent_work_configuration"); gr.query(); gs.info("total agent work parameters found: "+gr.getRowCount()); var updateCount = 0; while (gr.next()) { var canTravelOutside = gr.getValue("travel_outside_of_work_hours"); if ( canTravelOutside != travelOutsideWorkHours) { gr.setValue("travel_outside_of_work_hours", travelOutsideWorkHours); if (gr.update()) updateCount ++; } } gs.info("total agent work parameters updated: "+updateCount); } 2. Click Run Script. {#set-agent-schedule-preferences__ol_nmc_4cn_vgb} |
      [Tabelle : 1. Options to include travel time as work hours for users]

      {#set-agent-schedule-preferences__table_jsx_f4c_nsb}
   {#set-agent-schedule-preferences__substeps_wp4_d4c_nsb}

