Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3668 Visualizzazioni

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. 


Avatar
Abbandona
Risposta migliore

Hi,

You can do it as follows:

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


Thanks & Regards

Avatar
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
1
nov 23
1700
2
dic 23
5259
1
nov 22
2245
1
ago 22
2375
2
gen 22
5349