MRVS detect when a row is removed or deleted

Tadz
Tera Guru
Tera Guru

Hi Everyone,

Is it possible to detect deletion or removal of a record in MRVS?

Thanks,

Tadz

1 ACCEPTED SOLUTION

Aldwin
Tera Contributor

You can try this one :

$scope.$watch(function() {
    return $scope.page.g_form.getValue('variabl_name');
    }, function(value) {
        sessionStorage.setItem('ITEM_NAME',value);
});
 
 
You can create a macro inside your Catalog with a widget (containing the code above)

this will "watch" the MRVS value every time MRVS record changes. May it be delete or add.

View solution in original post

13 REPLIES 13

Narsing1
Mega Sage

Hi,

You may write a Business Rule on "sc_multi_row_question_answer" Table.  That captures the deletion of a row in MRVS.

Please mark it as correct answer if it helps.

Thanks,

Narsing

Deletion of records from the table sc_multi_row_question_answer does not seem to be tracked by default. Do you know how to fix it so they are tracked?

Ankur Bawiskar
Tera Patron
Tera Patron

@Tadz 

There is this table which holds the value of MRVS once Record producer/Catalog Item is submitted.

Multi Row Question Answers  (sc_multi_row_question_answer)

But if you want to detect deletion prior to submission of Record producer/Catalog Item then not possible.

If you want to detect the deletion after the Target Record/RITM is created then you can create before delete BR on that table.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Tadz 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Thanks!
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader