Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
4015 Ansichten

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
Verwerfen
Beste Antwort

Hi,

You can do it as follows:

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


Thanks & Regards

Avatar
Verwerfen
Autor

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

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Nov. 23
2085
2
Dez. 23
5657
1
Nov. 22
2563
1
Aug. 22
2625
2
Jan. 22
5763