on 05-15-2015 11:46 PM
Hello,
Here is the scenario - The DS job is writing data from a SQL table containing task lists to a csv file on a daily basis. Every day new tasks are added to the data. Upon job completion, DS needs to send out an email notification dynamically to all the assignees with the notification of the new tasks assigned to them. For ex. 3 new tasks are assigned to A and 2 to B, then on completion of the job each should get an email notification with the task numbers assigned to them - in this case 3 new nos. to A and 2 new nos. to B.
Please guide me towards the best way to accomplish this via DS
what is the source table meta data.
Can you please provide some more info about table then it would be more helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Abhishek,
Please refer to document
http://scn.sap.com/docs/DOC-60700
What you need to do is to
1) Create an output excel file(Target) using query transform which will contains the Task ID and Task Description and the email recipients.
2) Once Excel file is present in the accessible location, execute the script mentioned in the above document which will email the Task file to the desired recipients. Use a conditional work flow to route the File to different email recipients or you can send a single consolidated excel file to recipients.
Hope this helps
Regards
Arun Sasi
Thanks Arun ! Routing the message through an excel file seems to be good alternative, but I was wondering if there is way to have the task details in the body of the email.
Also, can you elaborate a bit on the Conditional Workflow ? The email to each recipient needs to consist only the tasks assigned to them.
Hi Abhishek,
you can store all the newly assigned task and recipients in separate table with sequence number which I think you can do with the help of table comparison.
Now after getting that list you can create three global variables
like
V_1 = get total no of rows in that table
Now put the conditional with exit condition like V_1 <= 0
Now while running in loop
create variable inside loop
V_2 = get receipt name where number = V_1
V_3 = get receipt role where number = V_1
Now you can put down email fields as shown in example by arun with different values generated by llop.
I hope you get my logic which can help you.
Thanks,
Swapnil
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.