# system.kanoa.cmms.updateWorkOrderScheduleField(workOrderScheduleId, field, value, userId)

Updates a single named field on an existing work order schedule, identified by `workOrderScheduleId`, to the supplied `value`. 
This is a targeted single-field update rather than a full replace � use `setWorkOrderSchedule` when creating a schedule, 
and this function for adjusting one field afterward (for example, changing the recurrence rule or pushing out the active date range).

---
### Parameters
**workOrderScheduleId** `Integer`: Id of workOrderScheduleId to update<br />
**field** `String`: Valid options are workOrderId, rruleStr, startDate, generateAheadDays, lastGeneratedDate<br />
**value** `String`: Value to update to<br />
**userId** `Integer`:Id of the user executing the function<br />

---
### Returns
**# of records modified** `Integer`<br />
**message** `String` None if success<br />

---
### Example
```python
workOrderScheduleId = 118
field = "generateAheadDays"
value = 30
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
recordsModified, message = system.kanoa.cmms.updateWorkOrderScheduleField(workOrderScheduleId, field, value, userId)
print recordsModified, message
```
