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 Platform Community / Forums / Power Automate / need help making a flo...
Power Automate
Answered

need help making a flow to get the 2 left characters from a string.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I need help, im making a flow to get the 2 left characters from a string.

 

I get a form respons which can be 3 options:

30 days

60 days

"others" (the response should be 45 days as example)

 

 

and i need to collect the number 30 to later, make an "adddays()" function and create a calendar event (which i know how to make it)

 

I only need to reccolect the string "30" from "30 days" and later get into an INT.

Also i would like to prefer to get only the 2 left characters (in others the user can put as example 90 months, and make a higher string)

 

Any ideas? thanks

Categories:
I have the same question (0)
  • Verified answer
    Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Anonymous 

     

    Use split function with separator 'space' in expression-

     

    Annotation 2020-08-21 231509.jpg

     

    Thanks

    Hardesh

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    thanks! it did work!

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 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard