why related list is not shwoing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
Hi All,
I have created a Related list by using "relationships"
and this i given applies to table as"project"
but when i open the project table records then these new related list is not showing
what is the reasonn for it ?
Regards,
Shabbir Shaik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
is that the complete script? looks incomplete
share complete one
I believe the script below I am sharing should bring the related CIs associated to the Project Resource Plan users
(function refineQuery(current, parent) {
var assignedToArr = [];
// Add your code here, such as current.addQuery(field, value);
var gr = new GlideRecord('resource_plan');
gr.addQuery('top_task', parent.sys_id);
gr.addQuery('state=3');
gr.query();
while (gr.next()) {
assignedToArr.push(gr.user_resource.toString());
}
current.addQuery('assigned_to', 'IN', assignedToArr.toString());
})(current, parent);
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
if query is wrong , then the related list don't display ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
related list should display but if query is wrong then data won't display
share screenshot on whether you added the Related list on correct form view
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
Hi @shabbir5
Right click on the Project Form on Header, context menu will then click on Configure>>List Layouts and add your newly created relationship. Screenshot is added for reference:
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.
********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect
Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
no i tried its not working