İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4036 Görünümler

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
Vazgeç
En İyi Yanıt

Hi,

You can do it as follows:

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


Thanks & Regards

Avatar
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Kas 23
2103
2
Ara 23
5683
1
Kas 22
2568
1
Ağu 22
2631
2
Oca 22
5780