How to use loop control to populate Json array #252
Replies: 4 comments
-
I can do it by hard coding but I do not want that route. Appreciate your help |
Beta Was this translation helpful? Give feedback.
-
I tried to use javascript but the resulting data is empty. Please have a look to attached workflow |
Beta Was this translation helpful? Give feedback.
-
@sfmskywalker |
Beta Was this translation helpful? Give feedback.
-
Hi @sniperwolfpk5 , Unfortunately, there are currently no activities available that would allow you to do that:
I think the best way to implement your requirement is to have a Then you could write a for each loop in e.g. JavaScript and update the model to your heart's content. |
Beta Was this translation helpful? Give feedback.
-
Hello @sfmskywalker
I want to use loop (Foreach, while or any) control to populate signal array. Workflow steps are
{ "WFId": "WF1", "Name": "Qamar", "Email": "[email protected]", "Receiver":"[email protected]", "Body": "This is a sample document.", "Actions": [ { "Name":"Approved", "ActionUrl":"" }, { "Name":"Rejected", "ActionUrl":"" }, { "Name":"Withdraw", "ActionUrl":"" } ] }
{ "WFId": "WF1", "Name": "Qamar", "Email": "[email protected]", "Receiver":"[email protected]", "Body": "This is a sample document.", "Actions": [ { "Name":"Approved", "ActionUrl":"http://localhost:56583/workflows/signal?token=CfDJ8LzCQns8bxpBjTuZdgBTx3lTl6TxwffP8IWE_KssIfWMWNn9ZYk6LkrM6OAZtOMPhjmrhfLQ0vAYSrZ0VWFO7qXprK_UeRw4U_hzTVKRu9DG_OPSfS1dBYwK6HXJc_FOeNl1HlCdXca-qxmfoOGoQaHsC-owSRmMv2rdpM3gc7x9-f2B-K2M2RigV0c0v9JOQl6sXDvssXvPj89ZvqSSKhU" }, { "Name":"Rejected", "ActionUrl":"" }, { "Name":"Withdraw", "ActionUrl":"" } ] }
Please note I want to use dashboard.
Beta Was this translation helpful? Give feedback.
All reactions