assignTask

Assigns the staff whose user ID is username to workflow task wfstr.

Version

1.3

Parameters

Parameter Type Description
wfstr string Workflow task to which to assign a user.
username string User ID of the user to whom to assign the task. Case sensitive.
wfProcess (optional) string Process name of workflow for wfstr. Case sensitive.

Notes

The function does not create a workflow history for the record.

If record’s workflow contains duplicate wfstr tasks, use parameter wfProcess to specify the process or subprocess whose wfstr to activate.

wfProcess is R1_PROCESS_CODE in the GPROCESS and SPROCESS tables. username and wfProcess are normally in uppercase.