Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Select Module in the top left banner then select the appropriate module name link.

  2. Select the appropriate module for which the Subaction JavaScript is needed.

  3. Select the Workflows tab, followed by the relevant workflow.

  4. Select the Actions tab, followed by the Action to be customized.

  5. Select the Subactions tab, on the right side of the assignment expression, paste the code below to assign a field value to the total number of days since submitted.

  6. Select Execute Javascript from the subaction type dropdown to the right.

  7. Select the edit Pencil Icon to access the JS editor.

  8. Select OK to store the JS, OK again to save the Action, then Save to save the workflow.

  9. Validate the functionality by performing the action. If you use the example script from this article, you will see subtasks added and the numeric fields have the respective valuesYou should see the request updated based on the script you provided.

Info

How to:
Add subtask and line items:

...