Skip to main content
Question

Notify Action Not Triggering Inside For Loop in Compound Action

  • February 24, 2026
  • 11 replies
  • 61 views

I’m facing an issue with a Compound Action where the flow executes successfully until fetching the manager_record, but the notify step does not trigger. There are no errors in the logs, both employee_record and manager_record are not NULL, and the workflow does not explicitly fail or terminate. The execution simply stops after fetching the manager record, and I don’t see any logs beyond that point. For testing, I’m using a single static record via script, but in the actual use case, the data comes from an HTTP action, which is why a for loop is used. I’m also attaching a screenshot of the logs for reference.

Here is the exact Compound Action configuration:

steps:
- script:
code: |
return [{
"LOGON_NAME": "mw_test_user_5@company.com",
"EMAIL_ADDRESS": "mw_test_user_5@company.com",
"MANAGER": "manager-name",
"ACCOUNT_EXPIRY_DATE": "2026-02-26 00:00:00",
"DISPLAY_NAME": "mw_test_user_5",
"SAM_ACCOUNT_NAME": "mw_test_user_5"
}]
output_key: filtered_user_list
input_args:
unused_var: ignore_me

- for:
output_key: processed_expiring_users
each: UserObject
in: data.filtered_user_list
index: i
steps:
- action:
action_name: mw.get_user_by_email
output_key: employee_record
input_args:
user_email: UserObject.LOGON_NAME.$LOWERCASE()

- action:
action_name: mw.get_user_by_email
output_key: manager_record
input_args:
user_email: data.employee_record.user.manager_email.$LOWERCASE()

- notify:
output_key: manager_notification_result
recipient_id: data.manager_record.user.record_id
message:
RENDER():
args:
date: UserObject.ACCOUNT_EXPIRY_DATE
email: UserObject.EMAIL_ADDRESS
name: UserObject.SAM_ACCOUNT_NAME
template: "[TEST MODE] The Account for Contractor {{name}} ({{email}}) is set to expire on {{date}}..."
actions:
- key: renew_action
label: "'Renew Account'"
conversation_action:
conversation_process_name: Renew_account_conversational_process
input_args:
renewed_date: UserObject.ACCOUNT_EXPIRY_DATE.$PARSE_TIME('%Y-%m-%d %H:%M:%S').$ADD_DATE(0, 0, 90).$FORMAT_TIME('%Y-%m-%d %H:%M:%S')
requestor: data.employee_record.user.manager_email.$SPLIT("@")[0]
user_name: UserObject.SAM_ACCOUNT_NAME

- key: do_not_renew_action
label: "'Do Not Renew'"
conversation_action:
conversation_process_name: Delete_not_renew_User_Account
input_args:
username: UserObject.SAM_ACCOUNT_NAME

This same configuration was working fine 4 days back without any changes

11 replies

Kevin Mok
Forum|alt.badge.img+1
  • Community Manager
  • February 24, 2026

EDIT:


  • Author
  • Participating Frequently
  • February 24, 2026

@Kevin Mok I have updated that, still not getting any notification.


Kevin Mok
Forum|alt.badge.img+1
  • Community Manager
  • February 24, 2026

@Ashritmravi Disregard that message, I gave you the wrong solution. Please give me a second to test your DSLs. You should leave the template as it was


  • Author
  • Participating Frequently
  • February 24, 2026

@Kevin Mok Reverted back


Kevin Mok
Forum|alt.badge.img+1
  • Community Manager
  • February 24, 2026

@Ashritmravi I am having hard time spotting the issue… have you tried using the test function inside the compound action to see if the console provides a log?


  • Author
  • Participating Frequently
  • February 24, 2026

@Kevin Mok yes have tested with that, the console gives the same log what I have posted above. Don’t see anything after manager user info is fetched.


Kevin Mok
Forum|alt.badge.img+1
  • Community Manager
  • February 24, 2026

@Ashritmravi I checked and tried your compound action directly in my instance, and it works fine. Are you setting the user manager to yourself to make sure you are getting the notification?


  • Author
  • Participating Frequently
  • February 24, 2026

@Kevin Mok Not really, fetching the info directly from user info object as it is.


Kevin Mok
Forum|alt.badge.img+1
  • Community Manager
  • February 24, 2026

Can you try hard-coding the values in the get_user_by_email actions for yourself so you can see notifications? I tested this and it worked fine

 


  • Author
  • Participating Frequently
  • February 24, 2026

@Kevin Mok I tried with hard-coded values mapping to me, still not getting the notification.


Kevin Mok
Forum|alt.badge.img+1
  • Community Manager
  • February 24, 2026

@Ashritmravi You will need to work with a Moveworks contact, such as an FDE, to help you troubleshoot.