Project and Portfolio Management Practitioners Forum
cancel

Is there a way to attach a file to workflow step notifications?

Highlighted
bzdafro
Honored Contributor.

Is there a way to attach a file to workflow step notifications?

Is it possible to attach a file with a workflow step notification?   (I have a workflow that scans a repository and creates a list of files being moved.   I would like to provide the list of files back to the user.  Right now I have the list being echoed in the execution log.   I would like to have the list emailed to the user.  Is something like this possible?  

2 REPLIES
Erik Cole
Acclaimed Contributor.

Re: Is there a way to attach a file to workflow step notifications?

Maybe use a workflow parameter to pass the list back to a field on the request, and include that field's token in the notification?

Utkarsh_Mishra
Acclaimed Contributor.

Re: Is there a way to attach a file to workflow step notifications?

Another option would be to... include the email code in your script itself... i.e. as soon as script is execute it will email the list.

 

You can agian modify to sciprt by putting some flags so that if script is called with parameter then email the list else not.

 

DBALIST=mail@org.com

echo "Hi Team," > msg

echo " " >> msg

echo "The LOGs of files that are moved....." >> msg

echo " " >> msg

echo "Below are the list of Logs:" >> msg

echo "=====================================================" >> msg
.
.
.
.<YOUR SCRIPT LOGIC HERE>
.
.
.

 

echo "=====================================================" >> msg

banner Logs ARCHIEVED

mailx -s "List of file" $DBALIST < msg

Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)