콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4070 화면

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
11월 23
2166
2
12월 23
5793
1
11월 22
2624
1
8월 22
2664
2
1월 22
5870