Skip to main content

Notifications

Power Automate - General Discussion
Answered

JSON

(0) ShareShare
ReportReport
Posted on by 1,724

Issue: When create a text file include specifc text, Error.

How can I convert the text to JSON value?

 

Scenario:

Create a JSON text formatted text file on OneDrive.

 

Flow:

1.jpg

 

Error the Text1 include "

  • yoshihirok Profile Picture
    yoshihirok 1,724 on at
    Re: JSON

    Hi @v-zhos-msft , thank you again.

     

    OK, I will submit my idea for this issue.

     

    Regards,

  • Verified answer
    v-zhos-msft Profile Picture
    v-zhos-msft on at
    Re: JSON

    Hi @yoshihirok ,

    Thanks for your feedback.

    Now I understand your scenario clearly.

    I am afraid you need format the text to Json first, then add the value into the file content.

    However there is no action about converting the data to Json format.

    If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

    Best Regards,

    Community Support Team _ Zhongys

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • yoshihirok Profile Picture
    yoshihirok 1,724 on at
    Re: JSON

    Hi @v-zhos-msft , thank you for your test.

     

    But, I have the issue still.

    When "Inputs" = Test , Ourput is OK.

    {
    "Text1": "Test"
    }

    When "Inputs" = Test " Test , Output is BAD

    {
    "Text1": "Test " Test"
    }

    The output is not escape as JSON.

    I want Output 

    {
    "Text1": "Test \" Test"
    }

    So, I want to convert the text to JSON text

  • v-zhos-msft Profile Picture
    v-zhos-msft on at
    Re: JSON

    Hi @yoshihirok ,

    I have made a test on my side, the flow can work successful.

    Capture2.PNGCapture3.PNG

    Best Regards,

    Community Support Team _ Zhongys

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard