Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3551 Tampilan

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
Buang
Jawaban Terbai

Hi,

You can do it as follows:

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


Thanks & Regards

Avatar
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
1
Nov 23
1451
2
Des 23
4975
1
Nov 22
1990
1
Agu 22
2159
2
Jan 22
5065