web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Answered

Split function

(0) ShareShare
ReportReport
Posted on by 340

Hi all,

I am trying to split some text returned from an AI model. Basically its a list of device serial numbers returned in a single line of text with a space between each serial. So for example its returned as:

 

5CG1410ZJY 5CG1410ZFE 5CG1410ZAS 5CG1410ZCV 5CG1410ZNM 5CG1410ZTY

 

Ideally I would like to take that string and either convert it to an array where I could use it to create a CSV with each serial in a separate cell, something like this:

da1ve_0-1663568795079.png

 

This is how I am getting the info:

da1ve_1-1663569074879.png

 

Any help would be appreciated

 

Thanks,
David

Categories:
I have the same question (0)
  • Verified answer
    Sundeep_Malik Profile Picture
    6,484 on at

    Hey @da1ve 

    You can save the serial numbers in a compose. After that use split function wherever the space is. And after that use create csv table action to get your output. Heres how the output looks like: 

     

    Sundeep_Malik_0-1663569793082.png

     

    Steps: 

    Firstly I have saved your serial numbers in a compose. After that, I have taken another compose and used split function in that. Formula:  split(outputs('Compose'),' ')

     

    Sundeep_Malik_1-1663569853314.png

    After this use create csv table action and go to advance settings, do custom, and in custom, in the header part add Serial and in value add item() in expressions. 

     

    Sundeep_Malik_2-1663569975990.png

    And then send it in an email.

     

    I hope this helps. 

  • da1ve Profile Picture
    340 on at

    Thank you @Sundeep_Malik - that worked well

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 291 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 109 Super User 2026 Season 1

Last 30 days Overall leaderboard