Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

trim String

(0) ShareShare
ReportReport
Posted on by

hello, i would like to ask for help. i have a string of characters however i would like to cut the string to a delimiter.

That is, I want to cut my string to "item".

 

[
  {
    "type": "source",
    "content": "BC "
  },
  {
    "type": "source",
    "content": "B"
  },
  {
    "type": "iso",
    "content": "B"
  },
  {
    "type": "abbrev_11",
    "content": "BB"
  },
  {
    "type": "abb9",
    "content": "BM"
  },
  {
    "type": "item",
    "content": ""
  }
]
How can I do this?
  • Verified answer
    HenWang Profile Picture
    Microsoft Employee on at
    Re: trim String

    Hi @Anonymous ,

     

    Would you please tell us if the provided array in your description is the source, what kind of data do you want to finally get from the flow? 

     

    Is it any item or each item from this array, or you want to receive a specific item from this item?

     

    For example, the sec item of this array is:

    {
        "type": "source",
        "content": "B"
      }
    And if this is the case, you can use expression to get it :  
    variables('variable_name')[1]
    HenWang_0-1681107403623.png

     

    If this is not the case, please show us any example from your side so that we can better understand what do you want for the result.

     

    Best Regards,

    Hen Wang

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow