Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4049 มุมมอง

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!

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 23
2131
2
ธ.ค. 23
5739
1
พ.ย. 22
2590
1
ส.ค. 22
2642
2
ม.ค. 22
5818