Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

One to many related list

manoj571
Tera Contributor

Hi All,

In the customer project task form, I need a related list that links to Change request. I

have created a UI action for the same (Edit), so that it can map the existing change records to the Customer Project task. When I click the Edit button, the Change Requests list is shown, but if I select a few and Save, it is not reflected in the Related list. This is my UI action code:

 

// Initialize URI and set parameters
var uri = action.getGlideURI();
uri.set('sysparm_o2m_ref', current.getTableName());
uri.set('sysparm_collection_related_file', current.getTableName());
uri.set('sysparm_form_type', 'o2m');
uri.set('sysparm_stack', 'no');
action.setRedirectURL(uri.toString('sys_m2m_template.do'));

Am I missing something?

0 REPLIES 0