- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2020 06:20 AM
Hi Tadz,
If you're looking to have related lists attached to a record, you will need to have separate tabs for each type because going directly to task will only show the fields in that table. You can get tricky with list controls to only show tabs that are populated.
If you are looking to have a script get to the fields, you need to do something like this:
//assumes that you have the task record available in theTask
var fullRecord = new GlideRecord(theTask.sys_class_name);
fullRecord.get(theTask.sys_id);
From there you have full access to the incident, change, problem, etc. The bottom line is that while in the context of task, you can only access task level data.
If you will need to display different data based on the task type you are probably best creating the relevant client scripts that do AJAX calls to fetch the data. From there you can populate various fields as needed.
Hope that helps.
:{)
Helpful and Correct tags are appreciated and help others to find information faster