Can someone share some limelight how the event RM.Event.ARTIFACT_SAVED works with a sample code if possible

Accepted answer

Go to https://jazz.net/wiki/bin/view/Main/RMExtensions703
click on Examples.
On that page click on "The attached .zip file contains all of the samples.".
Unzip the example file. Go to the ASIL example open the asil.js and search for ARTIFACT_SAVED.
2 other answers

At least in the 7.0.3 example asil_gadget there is use of the ARTIFACT_SAVED event - have you tried that?
See extensions for your version: https://jazz.net/wiki/bin/view/Main/RMExtensionsMain - there are examples with source code in each version
Comments

Ian Barnard Thank you for the reply. My use case is to update an attribute of the artifact on save but it is running on loop. This is logically correct since the update and save are recursive. Is there any solution for this use case
Also is it necessary to call the RM.Event.ARTIFACT_SAVED inside the RM.Event.ARTIFACT_SELECTED because the save event is not getting triggered other wise

How does the asil example handle this?

Ian Barnard
RMExtensionsASILSample703 < Main < TWiki If this the example then i was not able to find the saved event. If it is different, would be kind to share the resource