Help

Re: Removing repeated values from a list

553 0
cancel
Showing results for 
Search instead for 
Did you mean: 
DZaunLM
5 - Automation Enthusiast
5 - Automation Enthusiast

Hello, 

I am attempting to create an automation which will take compare records from two separate pages and then input values from one page into another based. I have the system working for finding and inputting the data from one page to another, but the issue is that the source page has repeated entries for the same conditions (example: there are 3 entries for the name daniel, where the name is being used as a condition).

Is there a way to have the "Find record" action remove repeated values from its list before outputting?
If not, is it possible to do so with coding it?

Thank you in advance.

1 Reply 1
Sho
11 - Venus
11 - Venus

A script is required to process a list of search results.
If your search results are always a list of only the same names, a simple script could handle it.

 

const {list} = input.config();
output.set("output", list[0]);

 

2023-10-12 104512.png
This script returns only the first one in the list.