Skip to content

String to Array based on delimeter. - #255

Merged
rohi-v merged 3 commits into
ServiceNowDevProgram:mainfrom
alkaChaudhary73:convert-string-into-array-branch
Nov 3, 2025
Merged

String to Array based on delimeter.#255
rohi-v merged 3 commits into
ServiceNowDevProgram:mainfrom
alkaChaudhary73:convert-string-into-array-branch

Conversation

@alkaChaudhary73

Copy link
Copy Markdown
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
Copy Markdown

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-vrohi-v self-assigned this Oct 31, 2025
@alkaChaudhary73

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
Contributor

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
Copy Markdown
ContributorAuthor

@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
Copy Markdown
Contributor

@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
Copy Markdown
ContributorAuthor
Negative ScenarioPositive Scenario

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

@rohi-v

Copy link
Copy Markdown
Contributor

Looks Good

Thank you for your contribution.

@rohi-v
rohi-v merged commit c0496c6 into ServiceNowDevProgram:mainNov 3, 2025
Sign up for freeto 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

@alkaChaudhary73@rohi-v