We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

HRSD Lifecycle – Unable to populate Activity on HR Task created via Subflow inside Activity Containe

yashsoni569
Tera Contributor

Hi Team,

I’m currently working on an HRSD Lifecycle Events configuration and running into an issue where the Activity is not getting populated on the HR Task that is created via a subflow.

What I’m trying to achieve

  • Lifecycle Event → Pre-Start Activity Set

  • Activity Container → contains a Flow activity

  • Flow (subflow) creates an HR Task

  • The created HR Task should be properly linked to the Lifecycle Activity (so Activity Set Context shows it correctly)

Current behavior

  • HR Task is getting created successfully

  • Task is linked to the parent HR case

  • However, in Activity Set Context, the activity shows as empty for the task created by the subflow

  • Because of this, the task is not behaving like other lifecycle-generated tasks

My current configuration

  • Subflow inputs:

    • Case ID (GUID)

  • Activity Field Mapping:

    • sn_hr_le_case.sys_id → Case ID

  • In subflow → Create HR Task step:

    • Parent = HR Case (looked up)

    • Activity = Selected the Activity from drop down. 

    • Stage/State/Template populated

  • Activity type = Flow (inside Activity Container)

  • Order of activities is correct

Issue

Despite the above, the HR Task created by the subflow is still showing Activity = empty in Activity Set Context.

Questions

  1. What is the correct way to populate the Activity on HR Task when created via subflow inside a Lifecycle Activity Container?

  2. Is the Activity input mandatory for Flow activities, or should we rely on “Activity generating this task”?

  3. Are there any additional flags or configuration required for Lifecycle to recognize the task?

  4. Is there a recommended OOTB pattern for this scenario?

If anyone has implemented this pattern successfully in HRSD Lifecycle Events, guidance would be greatly appreciated.

Thanks in advance!

0 REPLIES 0