تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4046 أدوات العرض

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
نوفمبر 23
2117
2
ديسمبر 23
5711
1
نوفمبر 22
2571
1
أغسطس 22
2633
2
يناير 22
5799