completeCAP

Version

1.5

Parameters

Parameter Type Description
userId string ID of user that completes the record.
capId (optional) CapIDModel Record with which to perform the action.

Notes

Assigns the staff whose user ID is userId to the Completed by Staff field on a record. Also sets the Completed by Date value to the current date.

If you use the capId optional parameter, the function updates record capId. If you do not use the capId parameter, the function updates the current record.