[Flow Designer] How can i rename the internal name of one flow/subflow

aymericb
Kilo Expert

Hello,

I don't find any documentation about the way to rename the internal name of a flow. I have changed the label of my flow and now the internal name is not appropriate. As it is a new flow i would like to rename it before used his internal name in scripts.

Do you know a solution ?

Thanks

 

1 ACCEPTED SOLUTION

Willem
Giga Sage
Giga Sage

Hi,

 

I think Bryan is right. You can however Copy your current workflow and rename:

find_real_file.png

Give the new name:

 

find_real_file.png

 

And you have it:

 

find_real_file.png

 

 

Please mark as Correct answer and helpfull if it is! 😄

View solution in original post

12 REPLIES 12

Kenny Wimberly
Tera Guru

There is another way, although the copy method works great.

Either using a fix script or background script execute the following (given your values, of course):

var sysHubFlow = new GlideRecord('sys_hub_flow');
if (sysHubFlow.get('<your flow sys_id>')) {
  sysHubFlow.internal_name = '<internal name you want to change it to>';
  sysHubFlow.update();
}

This worked best for me since I didn't want to have to clone all of my flows after I decided on a different naming convention.

Funny, just found your post today. Seems odd to me that we can't just change it in the Flow Properties.  If I change the name, seems like it should automagically change the internal name.

Bob20
Tera Contributor

I simply opened the table, added the Intername name column, the edited right there in the field in the table list:

 

find_real_file.png

This worked for me, Thanks Bob! marked as helpful.

Jason174
Tera Guru

I know I'm reviving a thread from the dead here, but you can technically change the internal name of a flow.  You need to navigate to the Flow table, add the Internal Name column, and list edit the value.

 

While I take no responsibility if this blows up something in your instance, I've done this multiple times without issues.