Skip to main content

Removing repeated values from a list

  • October 11, 2023
  • 1 reply
  • 0 views

Forum|alt.badge.img+4

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

Forum|alt.badge.img+19
  • Inspiring
  • 560 replies
  • October 12, 2023

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]);

 


This script returns only the first one in the list.

 


Reply