This question has been flagged
4 Replies
9935 Views

I'm trying to make an activity and then mark it done right away after its creation. I am able to create my activity with automated actions using 

"newActivity = env["mail.activity"].create({     *activity info* })"

Then I figured out how to delete it.. "newActivity.unlink()"

But that wasn't it. I want to be able to mark the newActivity as done so it shows up in the old activities in the chatter. How do I do this?

Or can this be done?

Thank you

Avatar
Discard
Best Answer

Try this:

newActivity.action_feedback()

Optionally you can define feedback as param (it would be added to a message):

newActivity.action_feedback(feedback="good job!")
Avatar
Discard
Author

You rock! Thank you!

Best Answer

would you please show us how can we mark an activity done through an automated action from Studio?

Avatar
Discard
Best Answer

Avatar
Discard