Note how the variable name has been updated in the assign activity but not the Switch activity. This results in an error (since the old variable name is now undefined)
Another workaround if you have many variables to rename is to open the .xaml in Notepad, then use the “Replace All” as text. Save it, then reopen in Studio. Just make sure that the text you are replacing is unique enough so you don’t rename other text unintentionally, though.
Agree just as a lazy developer and I have more than 20-30 format change or the Rename use to edit .xaml file in notepad… till today I didn’t find any errors and it is working as expected… just curiousity is there any affect of we edit xaml file?
@Divyashreem I get you that’s easier to modify in one place only, but sometimes the easiest way is not the safetest one and it could lead to errors or misbehaviour when running your project. Or it could go smoothly like in your case but we wouldn’t want to risk getting errors and being harder for both you and us to debug and get to the bottom of an issue.
I suppose it’s like editing the registry. It’s not recommended to change the registry either unless you know what you are doing and always make a backup (don’t be too lazy like most of us).
What we do need, however, is the ability to replace text or even entire activities within Studio. For example, you have an activity, let’s say a Message Box, and you want to change it to a Write Line you should be able to… if that’s possible. But, more importantly, Replace all text would be very useful. Hopefully, it’s something that is being considered in a future release.