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

I created an automated action to post a message to chatter for the contact when a VOIP Phonecall is created, but it is creating 2 messages. I have tried filtering the domain with [["state","=","done"]] but then it will not post a message. What would be the best way to get my message to only post once? 

Here is the action I created


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

As a workaround to the problem, I can suggest to following:

  • Add a new field on the VOIP Phonecall module and call it "has_been_posted"

  • As soon as you trigger the automated action, set has_been_posted to True

  • Add "if not record.has_been_posted:" too your automated action

Please note: the above is a hacky workaround. Best solution is to find out why the automated action is triggering twice instead of once.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 22
2979
1
thg 1 23
3335
1
thg 8 22
3279
0
thg 4 25
1160
0
thg 9 24
1375