Skip to content

Conversation

@juhikumarimodi6
Copy link
Contributor

Array Utilities Flow Action

Description:
This Flow Action allows you to manipulate arrays represented as comma-separated strings in ServiceNow Flow Designer. Both input and output are strings for Flow Designer compatibility.


Supported Operations

  • join – Join array elements with a delimiter
  • unique – Remove duplicate elements
  • asc – Sort array in ascending order
  • desc – Sort array in descending order
  • reverse – Reverse the order of the array
  • contains – Check if a value exists in the array
  • length – Get the number of elements
  • filterEmpty – Remove empty or null values

Features

  • Accepts comma-separated string input and returns string output
  • Trims whitespace from each element
  • Lightweight and reusable across multiple flows

Example

Input:

array_input = apple, banana, orange, apple
operation = "unique"
output = apple,banana,orange

@github-actions
Copy link

github-actions bot commented Oct 4, 2025

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@bird-03 bird-03 self-assigned this Oct 4, 2025
@bird-03
Copy link
Contributor

bird-03 commented Oct 5, 2025

Keep contributing such action ideas, Thanks for the submission. Looks good :)
Happy Hacking

@bird-03 bird-03 merged commit d356932 into ServiceNowDevProgram:main Oct 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants