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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Split Function

(0) ShareShare
ReportReport
Posted on by 8
Bot will update Department ID using Level 8-Name column, capture last 6 digits
If no value for Level 8, use Organization Level 7
If no value for Organization Level 7, use Organization Level 6
 
Bot should use split if value 5 i snull then pick 6 of not pick 7 how to do that?
 
I am comparing Excel and sharepoint and getting output and inserting excel into sharepoint
 
Nursing G16 502400(Value for Level6)
 
I have to split above value numeric and text seperately plus if one is null should go to next
 
 
split(split(string(body('SelectExcelItem')),',')[8],':')[1]
Categories:
I have the same question (0)
  • Suggested answer
    CU23070558-1 Profile Picture
    2 on at
    The best way of doing like, if something is not null use that value otherwise use some other value is coalesce().
     
    Compose 1  null
    Compose 2  "something"
    Compose 3  null
    Compose 4  null
    Compose 5  "something else"
     
    coalesce(outputs('Compose_1'), outputs('Compose_2'), outputs('Compose_3')) = "something"
    coalesce(outputs('Compose_1'), outputs('Compose_3'), outputs('Compose_4'),outputs('Compose_5')) ="something else"
     
    So, you can do all your string manipulation in Compose actions to keep it simple and easy to support later, then use coalesce() to decide the final output.
  • Verified answer
    WillPage Profile Picture
    2,323 Super User 2026 Season 1 on at
    The best way of doing like, if something is not null use that value otherwise use some other value is coalesce().
     
    Compose 1  null
    Compose 2  "something"
    Compose 3  null
    Compose 4  null
    Compose 5  "something else"
     
    coalesce(outputs('Compose_1'), outputs('Compose_2'), outputs('Compose_3')) = "something"
    coalesce(outputs('Compose_1'), outputs('Compose_3'), outputs('Compose_4'),outputs('Compose_5')) ="something else"
     
    So, you can do all your string manipulation in Compose actions to keep it simple and easy to support later, then use coalesce() to decide the final output.
  • d31 Profile Picture
    8 on at
    Thank you Willpage and i reasearched coalesce and it worked
     
    I have one more question How do i split Numeric and text for this value below
     
    Nursing Resource Pool 600535
     
    I have to split at Numeric value.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 612

#2
Valantis Profile Picture

Valantis 344

#3
11manish Profile Picture

11manish 326

Last 30 days Overall leaderboard