Skip to Content
मेन्यू
This question has been flagged
1 Reply
3992 Views

I have created a python script with an automated action that logs a notification in the chatter of an article. This is done with 

record.message_post(body="text to be added as a note")

Does anyone know how I could include in this notification a stored field from the object, for example the sale price (list_price)

Many thanks in advance. 


Avatar
Discard
Best Answer

Hi,

You can do it as follows:

msg = "list price %s" % record.list_price
record.message_post(body=msg)


Thanks & Regards

Avatar
Discard
Author

You have answered my request perfectly first time.
This works exactly as desired. Thank you so much!

Related Posts Replies Views Activity
1
नव॰ 23
2079
2
दिस॰ 23
5648
1
नव॰ 22
2559
1
अग॰ 22
2620
2
जन॰ 22
5755