You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use JavaScript code to trigger a workflow and populate the required variables, it triggers the workflow but still pops up a window requiring me to manually fill in the variables!
#1728
Open
ddd0819 opened this issue
May 17, 2024
· 2 comments
I want to use JavaScript code to trigger a workflow and populate the required variables, it triggers the workflow but still pops up a window requiring me to manually fill in the variables!
how can I specify the variables through JavaScript code?
The problem has been solved, I misunderstood the meaning, I thought the variable will be automatically filled into my pop-up window to help me fill in the corresponding variable value, it turns out that it is also necessary to get the value of the variable through JavaScript.
I want to use JavaScript code to trigger a workflow and populate the required variables, it triggers the workflow but still pops up a window requiring me to manually fill in the variables!
how can I specify the variables through JavaScript code?
here is my JavaScript code:
window.dispatchEvent(new CustomEvent('automa:execute-workflow', {detail: { publicId: '123456789',data: {variables: {search_key: 'hello',total: 10,filter_time:'2024-01-01',filter_like:0,filter_fans:0}}}}));
The text was updated successfully, but these errors were encountered: