跳至内容
菜单
此问题已终结
1 回复
4006 查看

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
2083
2
12月 23
5655
1
11月 22
2563
1
8月 22
2623
2
1月 22
5760