| | | Senior Member
       
Group: Forum Members Last Login: Sunday, May 03, 2009 Posts: 7, Visits: 14 |
| | Hi, I have a workflow, wherein for certain tasks there is a notification content section which will send email notifications during workflow execution. I would like to set a standard text by default in the notification template. that is i dont want to go to each and every task...go to notification content and include the default text in the Body content. I want to set a constant just like variable and its value to the text i wish to keep in every email template. and refer that variable in all the tasks where notification content is available. How do i define that constant? can you help? |
| | | | Supreme Being
       
Group: Forum Members Last Login: Thursday, November 19, 2009 Posts: 21, Visits: 34 |
| | Hi, As per your requirement, we understand that you want to define the content for a notification like subject or notes in one place and refer the same in all the actions notification contents rather than typing the same in each and every action. For this you may define a variable of type string in the start action. Then you need to use the update variable action to update this variable with the text that you want to display in each and every action's subject or notes part. Then in the respective action's subject or notes property, you can add this variable to display the content. Regards, Arvind.
Arvind |
| | | | Senior Member
       
Group: Forum Members Last Login: Sunday, May 03, 2009 Posts: 7, Visits: 14 |
| | Hi Aravind, thanks for your reply. I had done the smae thing...i had defined a variable called "default_text" as string in the start activity. Then i included "Update Variable" activity in the workflow and updated the "Set avriable" property to the text which i wish to refer in all the other tasks activity (<#%...but when i tested it ...it did not work...i did not get that text there,. even if i place the text in set variable property...it does not add it there...can you help? |
| | | | Supreme Being
       
Group: Forum Members Last Login: Thursday, November 19, 2009 Posts: 21, Visits: 34 |
| | Hi, Check for the value that is stored in the variable by writing a console application with the below code on a button click event... string var1 = Workflow.NET.Engine.Context.GetContext(<replace with executionid>, "<replace with application name>").Variables["<replace with variable name>"].Value.ToString();MessageBox.Show(var1);Regards, Arvind.
Arvind |
| |
|
|