How to Restrict Attribute Updates Using RM API
2 answers
The ARTIFACT_SAVED event fires after the save happens, so it's too late to see what attributes were modified. There are two options worth trying:
- the ARTIFACT_SELECTED event fires when a user selects an artefact, which they have to do before they can edit it. You could watch for that event and capture the ID and specific attribute value, and then use that to compare the ID and value after the save
- you could use the Reportable REST API to check the last revision of the artefact to see what was changed. Use something like:
/rm/publish/text?resourceURI=<resource>&history=true
to get the history of the artefact. You could even add the time range parameter to only get the most recent