cancel
Showing results for 
Search instead for 
Did you mean: 

How to assign a value to workflowDescription varaible in a workflow

How to assign a value to workflowDescription varaible in a workflow

Miguel-Angel_RO
Valued Contributor II

Hi,

I would like to populate the field workflowDescription based on the result of the workflow to have it reflected in the dashboard under Description or Message.

Any idea how to do that?

c1646686357a4dbb8b6808010976212e_c3f7880f-eb4b-411a-b20a-1604eb4c9476.png

Thanks

Mig

1 ACCEPTED SOLUTION

StephanH
Valued Contributor III

Hello Mig,

as far as I know the “General” description can’t changed in the workflow at runtime:

cc64e8d68a194ed7aee3f17fafaa3d56_d97b9d8e-4c94-4f0f-ab79-26b5d993e6c4.png

 

But you can use the buildin variable “workflowMessage” (available on the dashboard, too). If you do not the this column on the dashboard you can change the behaviour in the column header.

To write the variable use the following python command in your workflow:

msg = "Thats my message"
emc_results.put("workflowMessage", msg)

There is a variable “workflowDescription”, too. But I think this is not shown in the Dashboard. It’s not the same like the Info in the screen above.

 

Regards

Stephan

Regards Stephan

View solution in original post

2 REPLIES 2

Miguel-Angel_RO
Valued Contributor II

Stephan,

You made my day!!

Thanks

Mig

StephanH
Valued Contributor III

Hello Mig,

as far as I know the “General” description can’t changed in the workflow at runtime:

cc64e8d68a194ed7aee3f17fafaa3d56_d97b9d8e-4c94-4f0f-ab79-26b5d993e6c4.png

 

But you can use the buildin variable “workflowMessage” (available on the dashboard, too). If you do not the this column on the dashboard you can change the behaviour in the column header.

To write the variable use the following python command in your workflow:

msg = "Thats my message"
emc_results.put("workflowMessage", msg)

There is a variable “workflowDescription”, too. But I think this is not shown in the Dashboard. It’s not the same like the Info in the screen above.

 

Regards

Stephan

Regards Stephan
GTM-P2G8KFN