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
Unanswered

undefined

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

remove json content from text document and return text other than json, how to do it?

Categories:
I have the same question (0)
  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @Anonymous ,

     

    Can you post a screenshot of the document with more details?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Json.PNG

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    '0 NOTIFICATIONS TOTAL' , This is the output I need. 

  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @Anonymous  ,

     

    How is the file created ? Will the text content ever have '{'. Its easy to get if No. 

     

    1. Manual trigger.

    2. Get File Content

    2. Split the File content based on '}' (Here I am assuming that your text will never have { as you re not giving more details

    split(outputs('Get_file_content')?['body'],'{')

    3. Now access the first element of the array and trim it using the trim function to remove the whitespaces. 

    trim(outputs('Compose')[0])

     

    Hope this helps!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you so much , I got the result, If I want this UST details also What change will come in Split function?

     

     

    Remove_Json.PNG

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard