WorkRequests.save (Method)
Either saves or updates a work request.
Returns:
Void
Arguments:
Name | Type | Required | Description |
---|---|---|---|
id | WorkRequestID_0 | Required | A work request's ID. If this value is 0, CommonSpot creates a new work request instead of updating an existing one. |
workResourceID | WorkRequestResourceIDActive | Required | An active work request's resource ID. |
title | PlainText_NonNull_255 | Required | The work request's title. |
dueDate | Date | Required | The date the work request is due. |
assignedToID | UserGroupID_ExcludingAnonAuth | Required | The ID of the user or group assigned to a work request. |
urgency | Urgency | Required | An integer describing the urgency level (2: Low, 1: Medium, or 0: High). |
notes | PlainText_NonNull_255 | Required | Notes describing the work request. |
objectID | PageID_0 | Required | The ID of the page associated with the work request. If the request is a general work request, this value is 0. |
notifyOnAssignment | Boolean | Optional. Defaults to '1'. | Boolean flag which when set to true tells CommonSpot to send out notifications that the work request was assigned. |
notifyOnReject | Boolean | Optional. Defaults to '1'. | Boolean flag which when set to true tells CommonSpot to send out notifications that the work request was rejected. |
notifyOnAccept | Boolean | Optional. Defaults to '1'. | Boolean flag which when set to true tells CommonSpot to send out notifications that the work request was accepted. |
notifyOnCompletion | Boolean | Optional. Defaults to '1'. | Boolean flag which when set to true tells CommonSpot to send out notifications that the work request was completed. |
deleteOnCompletion | Boolean | Optional. Defaults to '0'. | Boolean flag which when set to true indicates that CommonSpot should delete the work request after the request is completed. |
Context:
License Requirements | None |
Permission Requirements | Contributor |
Deny Context | None |
Require Context | AuthoringEnabled |
Author Lock | (not required) |
Transaction Logging | If transaction logging is enabled at the site level, calls to this method will be logged |
Customization | This method may be customized at the site level |
Error Codes:
Code | Error Message |
---|---|
64006 | The due date cannot be in past. |
64007 | The specified user or group has not been assigned to handle work requests for the specified work type. |
64009 | |
64010 | |
64011 | Only the owner has edit permission for the work request. |
64012 | You cannot reassign this work request. |
64013 | The outbound mail server is not configured and you cannot configure email notifications. Please see your system administrator. |
Notes:
None