Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4041 Lượt xem

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. 


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

You can do it as follows:

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


Thanks & Regards

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 23
2110
2
thg 12 23
5687
1
thg 11 22
2568
1
thg 8 22
2632
2
thg 1 22
5780