Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
3891 Näkymät

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
Hylkää
Paras vastaus

Hi,

You can do it as follows:

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


Thanks & Regards

Avatar
Hylkää
Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
marrask. 23
1992
2
jouluk. 23
5536
1
marrask. 22
2467
1
elok. 22
2547
2
tammik. 22
5639