This topic contains 2 replies, has 0 voices, and was last updated by pcutler 6 years, 4 months ago.

  • Author
    Posts
  • #17947 Score: 0

    pcutler
    • Contributions: 0
    • Level 1

    We all know that user events are not triggered from within other user events. But I’ve also encountered scenarios where certain user events are not triggered from within a workflow. For instance, scheduled workflows with Set Field Value actions don’t seem to trigger any user events.

    Has anyone seen documentation on when user events are triggered from workflows?
    This is a cached copy. Click here to see the original post.

  • #17948 Score: 0

    starlingMark
    • Contributions: 0
    • Level 1

    Hi pcutler,

    Per the help on What Are User Event Scripts?:

    User event scripts cannot be executed by other user event scripts or by workflows with a Context of User Event Script.

    This leads me to believe that workflows should trigger user event scripts, as long as the workflow is not running on a user-event-style trigger.

    What I’d like to know is how the scripting engine determines the context. There is a context type for workflow, but perhaps it is only used when the workflow fires on a non-user-event-style trigger?

  • #17949 Score: 0

    pcutler
    • Contributions: 0
    • Level 1

    Thanks for chiming in. Since scheduled workflows don’t trigger user events for us to test and check the context, the only indicator of the context I’m aware of is the system notes. In the system notes, the context is reported as “Scheduled Workflow.” I’d expect that user event scripts would be triggered from within that context, but apparently they’re not.

You must be logged in to reply to this topic.