Copying field values from one table to another using a reference field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2025 05:33 AM
i have a table custome table named (special tasks) and i have another custom table named (Main Tasks) , i have linked these two by creating a referance field (special tasks) table then created a business rule that contain this code in it
it bring me the value itself not the value what the user has chosen, also there is a group field that is not capturing at all , if anyone have any idea how to ahcive this please lt me know , thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2025 01:56 AM
Hello @mohamedalha ,
I do not understand your problem statements, but here are some things I noticed in your script:
new GlideRecord('Main_Tasks');
The GlideRecord parameter must be the internal table name, not the label. Please go to System Definition > Tables to find this table and its internal name. It's probably "u_main_tasks", or "{scope}.main_tasks" or something like that.
current.update();
Please do not use this in a Business Rule as it can lead to unexpected results.
Regards,
Robert