How to use ForEach control get collection value from customer activity #295
Replies: 2 comments
-
Nice use case! So first, you would add a Liquid: Then connect the When all emails have been sent, the |
Beta Was this translation helpful? Give feedback.
-
@sfmskywalker |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have an custom activity named "ApproveUser"
protected override async Task OnExecuteAsync(WorkflowExecutionContext context, CancellationToken cancellationToken)
{
var user = new User
{
Name = "LTA"
Email =new List(){"[email protected]","[email protected]","[email protected]"},
Status=1
};
Output.SetVariable("User", user);
return Done();
}
Moreover, I want to user ForEach control to loop Activities.ApproveUser.User.Email, and then sendemail to each element of Email. How to design it?
Thanks for your support
Beta Was this translation helpful? Give feedback.
All reactions