Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Unable to click on "Remove All" button in mrvs table

indusahu
Tera Contributor

In my automation steps I have to click on "Remove All" and Cross icon to delete individual records.  Please check in the below screenshot:

indusahu_0-1787645752567.png

There is not way to capture the component for the "Remove All" and Cross icons. This is a part of mrvs and mrvs does not provide component for Remove All and Cross/Pencil icon.

 

Anyone please help me finding the workaround for the same?

 

@Vikram Reddy 

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron

@indusahu 

are you talking about ATF step?

If yes then there is no OOTB step to click Remove All

Did you try to use custom UI step (click) and grab the HTML id of that button?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hi @Ankur Bawiskar , Yes I checked with "Click UI Component" and "Click a UI action", both are not bringing the component of Remove All button. Since 'Remove All' is a part of mrvs, so it will not be fetched by Click UI Component and Click a UI action steps.

@indusahu 

if you are unable to grab that component then it's not feasible in ATF

Please inform your customer about this

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

drbob
Tera Guru

If it's _not_ ATF (or maybe even if it is with that custom UI step) then you can mess with MRVS variables with code - I don't have access to the code we used to do this but from memory, that field (if you get the value) is a JSON object. ...so if you need to edit it you grab it JSON.parse() it and then iterate over the top level array (each row) to do what you want. When you're done, JSON.stringify it and push it back.

In the simpler case of "Remove All", just create an empty JSON object with the correct structure and push it in.