web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to edit a flows co...
Power Automate
Suggested Answer

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

(2) ShareShare
ReportReport
Posted on 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.

Categories:
I have the same question (2)
  • Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    I don’t think you can. You can copy it to clipboard, edit it in notepad or whatever other application and paste it back into your flow.

  • jholmes724 Profile Picture
    20 on at

    That's not going to work, how can you paste back the changes when the editor is read-only??

  • Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    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.

  • jholmes724 Profile Picture
    20 on at

    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,180 Super User 2024 Season 1 on at

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

  • ckollar62 Profile Picture
    2 on at

    @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,180 Super User 2024 Season 1 on at

    Same question? What exactly are you trying to change?

  • klueman Profile Picture
    7 on at

    @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,180 Super User 2024 Season 1 on at

    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

  • scalca Profile Picture
    on at

    you must be awarded for this hack 😁

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard