Edit the label of M2M Table after creation

rao_2017
Kilo Contributor

Can we edit the label of M2M Table after creation?

4 REPLIES 4

Jaspal Singh
Mega Patron

We can but I guess it specific to Related list. So, if I created a M2M table & using it as a related list on one of my Forms then we can have the label changed by configuring List Layout.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

Not applicable

The M2M form label in the sys_m2m table cant be modified.  To do so I created an admin override ACL so i can rename the label.   There is a business rule 'SNC ManyToMany Create' that checks if the m2m already exists, I can comment out the BR that makes this check and update the record.

Otherwise you can rename the label of related list by right clicking on the menu of the related list and doing Configure >> List Control

Over there you can assign the label of your preference.

 

Hit Like or Correct on the impact of response.

-Tushar        

 


 

NikolasP1
Tera Contributor
Use background scripts. 
var m2mtable = new GlideRecord('sys_m2m');
m2mtable.get('sys_id');

// gs.info(m2mtable.m2m_to_label);
m2mtable.m2m_to_label = 'new_value';
m2mtable.update();

TharaS657398130
Giga Guru

Yes, you can edit the label of an M2M (many-to-many) table after creation, but only to a certain extent.

If you go to the table definition (System Definition → Tables) and open your M2M table, you can change the Label field — this will update how the table name appears in the UI (like module names, related lists, etc.). So from a display perspective, it’s totally fine to modify it.