Skip to main content

How do I use the ARRAYUNIQUE() for this two-line string

  • May 27, 2022
  • 2 replies
  • 39 views

Forum|alt.badge.img+9


I want to get the unique value of the {Photos IDs} column, but ARRAYUNIQUE() doesn’t work, presumably because it has a newline symbol in it. What should I do

2 replies

kuovonne
Forum|alt.badge.img+29
  • Brainy
  • May 27, 2022

ARRAYUNIQUE() only works on arrays, such as in rollup fields. It does not work on lists that are really text strings. Your formula field is probably producing a text string. How are you generating the list initially? If there is a rollup earlier in the process, you can try putting ARRAYUNIQUE() there.

If the values come from a long text field, you can use a script to split the text string into a list and make the list unique.


Forum|alt.badge.img+9
  • Author
  • Known Participant
  • May 30, 2022

ARRAYUNIQUE() only works on arrays, such as in rollup fields. It does not work on lists that are really text strings. Your formula field is probably producing a text string. How are you generating the list initially? If there is a rollup earlier in the process, you can try putting ARRAYUNIQUE() there.

If the values come from a long text field, you can use a script to split the text string into a list and make the list unique.


I can’t, because the value of the Photos IDs column is the ID of the attachment in the automatically captured attachment column