Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

custom edit slushbucket label issue

JoaoV
Tera Expert

Hello guys,

 

I have a silly problem that has been messing with me the all day.

 

I made a m2m using cmdb_ci_business_app and sys_store_app 

 

JoaoV_1-1759695805144.png

 

I have a custom table

JoaoV_2-1759695829666.png

 

and I am displaying that m2m in a related list after creating the relationship between my custom table and the m2m table like this:

 

JoaoV_0-1759695758502.png

 

 

I made a UI Action to use as a EDIT...

 

JoaoV_3-1759695857098.png

 

script:

var uri = action.getGlideURI();
uri.set('sysparm_collectionID', parent.business_application); 
uri.set('sysparm_collection_key', 'u_cmdb_ci_business_app');
uri.set('sysparm_collection_related_file', 'sys_store_app'); 
uri.set('sysparm_collection_related_field', 'sys_store_app');
uri.set('sysparm_m2m_ref', 'u_m2m_cmdb_ci_busi_sys_store_ap'); 
uri.set('sysparm_stack', 'no');
action.setRedirectURL(uri.toString('sys_m2m_template.do'));

 

everything works great except for this label:

 

JoaoV_4-1759695901041.png

 

 

Any tips on how to resolve this? I cannot find the answer anywhere

 

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@JoaoV 

did you try to clear instance cache using cache.do and then logout and login again?

Did you check how is the behavior for some other m2m related list when you Edit?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello @Ankur Bawiskar thanks for answering. I cleared instance cache and log out and in but still the same jelly error. It is right below the label of the list control when the sysid of the parent record would sit. But I cannot find a way to display there the proper value or not display anything at all. I have the same behaviour for multiple instances...

@JoaoV 

Strange.

Since you are seeing it for other m2m related list then seems some platform issue.

Did you notice same behavior of jelly for OOTB m2m related list?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello @Ankur Bawiskar The thing is that if I add the related list that was created when I made the m2m and I place it in cmdb_ci_business_app there is no problem, everything works great and I have the edit button OOTB.

But I need to add this related list in a custom table where the parent will not be cmdb_ci_business_app but it is now the custom table. So to achieve this I made the scripted relationship and the ui action that open sys_m2m_template but I cannot get rid of the **bleep** jelly error.

 

I have the same problem in my PDI than with other instances.