How to copy List field values from one table to another table.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 08:32 AM
Hello,
I am trying to copy List field values from Demand table to Project table List field.
Can anybody help me with script please.
Regards
Akshatha
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 08:40 AM
Hi Akshata,
You can write BR on Insert/Update of Project table (Async is good idea). Make sure the Demand field will be populated on Project. Script idea is given below:
(function executeRule(current, previous) {
var gr = new GlideRecord('dmn_demand');
if (gr.get(current.demand)) {
current.<list_project> = gr.<list_demand>;
current.update();}
})(current, previous);
Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.