Relationship between two tables?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2017 11:35 PM
Hi All,
How to build a relationship between 2 tables . I had a table dtask which is extended from demand . Need a relationship between dtask and stake holder table which related list to demand.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2017 07:43 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2017 09:04 AM
Why don't you use business rule.
create a business rule on 'stake holder' table and do query.
this is just an example.
var test= new GlideRecord('incident');
test.addQuery('problem_id', current.sys_id);
test.query();
if (test.next()) {
test.state = '3';
test.update();
gs.log('Found Problems related to this INC ' + test.number , 'debug>>');
} else {
gs.log('No Problems related to this INC' + test.number, 'debug>>');
}
Thanks,
Harshvardhan