Skip to Content
Menu
This question has been flagged
1 Atsakyti
4195 Rodiniai

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. 


Portretas
Atmesti
Best Answer

Hi,

You can do it as follows:

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


Thanks & Regards

Portretas
Atmesti
Autorius

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

Related Posts Replies Rodiniai Veikla
1
lapkr. 23
2313
2
gruod. 23
5928
1
lapkr. 22
2761
1
rugp. 22
2787
2
saus. 22
6008