コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3885 ビュー

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. 


アバター
破棄
最善の回答

Hi,

You can do it as follows:

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


Thanks & Regards

アバター
破棄
著作者

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

関連投稿 返信 ビュー 活動
1
11月 23
1989
2
12月 23
5534
1
11月 22
2459
1
8月 22
2545
2
1月 22
5636