Page 1 of 1

dynamically getting the values of parameters in Sequence

Posted: Tue Mar 31, 2009 9:55 am
by prashanto_dev
I have a sequence in which I am using NOTIFICATION ACTIVITY.

I need to get the CURRENT PROJECT NAME and THE SEQUENCE NAME in the subjectline of notification activty stage without harding coding its value.

Re: dynamically getting the values of parameters in Sequence

Posted: Tue Mar 31, 2009 10:21 am
by Pagadrai
prashanto_dev wrote:I need to get the CURRENT PROJECT NAME and THE SEQUENCE NAME .
Hi,
You can get the Project name using DSGetProjectInfo (InfoType)
InfoType specifies the information required and can be one of:
DSJ.JOBLIST
DSJ.PROJECTNAME
DSJ.HOSTNAME.

I guess Sequence Name is the job name from where the Notification is called. you can use DSJobName for that.

Use a User Variable stage to get the above values and use them for Notification.

Re: dynamically getting the values of parameters in Sequence

Posted: Tue Mar 31, 2009 11:58 am
by gateleys
prashanto_dev wrote: I need to get the CURRENT PROJECT NAME and THE SEQUENCE NAME
In a User Variable stage, create 2 variables, say ProjName and SeqName. Then, assign the macros DSProjectName and DSJobName for the 2 variables, respectively.

Posted: Tue Mar 31, 2009 12:12 pm
by prashanto_dev
Thanks. Its working.