Unable to click on "Remove All" button in mrvs table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
In my automation steps I have to click on "Remove All" and Cross icon to delete individual records. Please check in the below screenshot:
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
