Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4345 Prikazi

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
Opusti
Best Answer

Hi,

You can do it as follows:

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


Thanks & Regards

Avatar
Opusti
Avtor

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

Related Posts Odgovori Prikazi Aktivnost
1
nov. 23
2513
2
dec. 23
6240
1
nov. 22
2944
1
avg. 22
2961
2
jan. 22
6332