Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4050 Widoki

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. 


Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

You can do it as follows:

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


Thanks & Regards

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
1
lis 23
2131
2
gru 23
5739
1
lis 22
2591
1
sie 22
2642
2
sty 22
5820