Skip to main content

Notifications

Community site session details

Community site session details

Session Id : zydNb3A9VusekmvdkyqPpO
Power Automate - General Discussion
Suggested answer

How to edit a flows code view when it is read only

Like (2) ShareShare
ReportReport
Posted on 29 Dec 2023 15:44:57 by 20

I have search far and wide on how to make edits in code view and to turn off read only attribute for this.  Please provide assistance on how to achieve tand resolve this issue.

  • Suggested answer
    Timmmmmm Profile Picture
    4 on 09 Aug 2024 at 18:53:31
    How to edit a flows code view when it is read only
    here was my solution:
    export the Flow as a ZIP file.
    decompress and edit the definition.json where the flow's code is stored.
    recompress it and import the resulting ZIP.
    BOOM- done. 

    My organization has browser extensions disabled, otherwise it looks like there is a 3rd party fix for this- admittedly that post is dated.
    Creating a Power Automate Flow in Code - DEV Community
     
     
  • luredrive1 Profile Picture
    12 on 10 Jul 2024 at 13:56:15
    Re: How to edit a flows code view when it is read only

    How do you paste the edited code back into the designer? I can't seem to work it out. There is no option to paste when I right-click.

  • scalca Profile Picture
    on 28 Mar 2024 at 06:56:43
    Re: How to edit a flows code view when it is read only

    you must be awarded for this hack 😁

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on 13 Mar 2024 at 19:03:19
    Re: How to edit a flows code view when it is read only

    Sure it does and I do that a lot.

     

    Copy it as you already did.

    Paste it to notepad or whatever editor you use.

    Do the changes there

    Copy the whole json into the clipboard

    Select „My clipboard“ as you already did and press „ctrl+v“

    Now add the action that appears

  • klueman Profile Picture
    7 on 12 Mar 2024 at 16:49:59
    Re: How to edit a flows code view when it is read only

    @Matthy79 wrote:

    You just delete the action and paste it back again (with the changes made in notepad). What exactly are you trying to change?


    What are you talking about? Please clarify what steps you're taking here exactly.

     

    Because what they're talking about is copying code from the "Peek Code" window. They take that, paste it into Notepad, make changes, copy it, and bring it back to PowerAutomate, but then what? You can't paste that code into the Peek Code window.

     

    You said delete the action and "paste it back", but there is no visible option to "Paste" anything. There's also no option to create a new Action from raw code in the clipboard.

     

    The only thing I can assume is you're talking about this:

     

    klueman_1-1710261572001.png

    But that doesn't allow you to paste raw code you copied from Notepad. That only works if you use this:

     

    klueman_3-1710262051105.png

     

    But the code you copy when you select that option isn't editable in Notepad. 

     

    Maybe you're talking about an older version of the classic designer, because the current classic designer does not have any obvious method of doing what you're suggesting.

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on 31 Jan 2024 at 20:32:21
    Re: How to edit a flows code view when it is read only

    Same question? What exactly are you trying to change?

  • ckollar62 Profile Picture
    2 on 31 Jan 2024 at 16:50:12
    Re: How to edit a flows code view when it is read only

    @Matthy79 I'm having the same problem. I added a new action to the flow, that too was read only. I couldn't update the code.

     

     

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on 05 Jan 2024 at 19:30:48
    Re: How to edit a flows code view when it is read only

    You just delete the action and paste it back again (with the changes made in notepad). What exactly are you trying to change?

  • jholmes724 Profile Picture
    20 on 05 Jan 2024 at 17:37:41
    Re: How to edit a flows code view when it is read only

    Ok so I click the ellipsis on the switch statement and select Copy to Clipboard, which I can paste into my notepad as show below, so how do I paste this into the code.  Where on this switch statement do I paste it?  there is not option for this that I can see.  Please help because I don't understand how this is achived.

     

    jholmes724_0-1704476185499.png

     

     

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on 03 Jan 2024 at 21:09:20
    Re: How to edit a flows code view when it is read only

    You copy the action, scope, condition or whatever, paste it to notepad, do your changes and paste it pack to the flow. I do this a lot. It only works with the classic designer.

     

    But if you want to change properties that can’t be changed in any setting, it won’t be in the json.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,089 Most Valuable Professional

Leaderboard
Loading started