Clear MsgBuilder

 2 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Thomas Varughese
Basic Member Send Private Message
Posts: 7
Basic Member
I am developing a process flow that should send e-mail to employee with their contact information in PA12.1 (PAEMERGCNT). One employee can have many contact defined in PA12.1. I use a MsgBuilder to collect all the contact details of the employee and send it by e-mail. My problem is since the MsgBuilder doesn't clear the first employee contact details...it shows in the next employee's e-mail aswell

Is there a way to clear the MsgBuilder after the first employee record is finsh in the loop? I am using SQL Query node to get the employee info.

Is there a better way?

Thanks,
Thomas.
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
I generally define a "Msg" variable on the Start node and then use that as the MsgBuilder variable. If I need to clear it in order to use it again I use an Assign node and make Msg=""
David Williams
Thomas Varughese
Basic Member Send Private Message
Posts: 7
Basic Member
Thanks David!!! It worked. I was able to clear the MsgBuilder by calling it in Assign node.

Thomas.