Skip to content

Conversation

@alkaChaudhary73
Copy link
Contributor

# PR Description  
This Flow Action converts an input string into an array based on a specified delimiter.

## Overview  
The action takes two inputs:  
- **String**: The text to be split.  
- **Delimiter**: The separator used to divide the string.  

It returns an **Array** output containing all elements split from the string.

## Example  
**Input:**  
- String: "A,B,C,D"  
- Delimiter: ","  

**Output:**  
["A", "B", "C", "D"]

## Use Case  
This Flow Action can be used in scenarios where data is received as a single string (e.g., comma-separated values) and needs to be processed iteratively in a Flow.

## Checklist  
- Implemented script logic for splitting string into array  
- Validated with multiple delimiters (",", "|", ";")  
- Verified output format in Flow Designer  
- Added error handling for empty or invalid input values

@github-actions
Copy link

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!

@rohi-v rohi-v self-assigned this Oct 31, 2025
@alkaChaudhary73
Copy link
Contributor Author

Hi @rohi-v ,

This is the same pull request where you had suggested some changes earlier. I’ve made the updates based on your feedback could you please take a look and let me know if everything looks good now or if any further changes are needed?

Thank you

@rohi-v
Copy link
Contributor

rohi-v commented Oct 31, 2025

Hi @alkaChaudhary73

I have given below inputs and I did not receive any message.

Delimeter - ,
Input String - a.b.c.d

image

@alkaChaudhary73
Copy link
Contributor Author

@rohi-v , Could you please review the latest changes so that I can raise another PR and complete my hacktoberfest.
Thank you

@rohi-v
Copy link
Contributor

rohi-v commented Nov 1, 2025

@alkaChaudhary73 Positive scenario is also throwing error.

image

You can update the action, I will keep this PR Open and once approved it counts towards your hacktoberfest count.

@alkaChaudhary73
Copy link
Contributor Author

Negative Scenario Positive Scenario

@rohi-v , I have updated the changes and attached the screenshot for both positive and negative scenarios.
Thank you!

@rohi-v
Copy link
Contributor

rohi-v commented Nov 3, 2025

Looks Good

Thank you for your contribution.

@rohi-v rohi-v merged commit c0496c6 into ServiceNowDevProgram:main Nov 3, 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