cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How to get the List of pbo attributes in an Email Notification?

maheshkumar
2-Explorer

How to get the List of pbo attributes in an Email Notification?

Hi Gurus,

I am using Windchill 10.2 M030 CPS5, I need to get the list of attributes in a email notification of that particular PBO, There is a workflow associated to it. I need to send a mail to Users with List of Attributes in Email Body and Some Attributes in Subject As well.

Thanks in Advance

Best Regards,

Mahesh Kumar G

2 REPLIES 2

Mahesh,

 

I don’t know which POB you are using for workflow (Document Part Promotion Request or Change object).

Use below steps

  1. Create workflow variable for example String colour;
  2. In expression robot get the value of colour attribute from PBO use PersistableAdapter API https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS135663
  3. Use color attribute in email robot. i.e. in subject and in body

email.jpg

 

However if it is Change object then i would sugest to create summary report (ECN / ECR ) in workflow using customer helper class and send it to user as an attachment  see this  link for sample 

 

https://community.ptc.com/t5/Windchill/How-can-send-Email-attachments-through-code-with-API-wt-mail/m-p/23634#415295

 

 

Hope it helps!!! 

 

Thanks

Shreyas

Hi Shreyas,

Thanks for your information. I am using WTDocument as PBO.

I will try the above CS Doc and let you know.

Thanks & Best Regards,

Mahesh

Announcements

Top Tags