I would like to have an action available in Rules to delete a quiz result. The scenario is a retest. My quizzes are available for purchase, and are set to allow one attempt only. If they fail, they can purchase a retest. But currently, when a retest is ordered I have to manually process these by going in and deleting the exam result so they can take it again. If I had an action to delete the quiz result, I could set this up to happen automatically and the user could retake the quiz immediately. Or if there are other suggestions for handling this use case, it would be greatly appreciated. Thanks!

Comments

michellezeedru created an issue. See original summary.

djdevin’s picture

You can already do this with the "Delete entity" rules action.

You would have to build the criteria to do it, but, Quiz result is an entity so that's the way to go. It would involve the "Fetch entity" action and then passing that entity to the rules delete entity action.

djdevin’s picture

Status: Active » Closed (works as designed)