Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

Copy u_description from interaction to description field on incident

Darlene York
Tera Contributor
Requirement: Automatically copy the u_description field from the originating Interaction to the Description field on the Incident when the Incident is created from the Interaction.
 
I did a before insert business rule.  But it is not populating the incident description.  
 
Thank you for any help.
 
(function executeRule(current, previous) {

    if (!current.parent_interaction.nil()) {

        var interactionGR = new GlideRecord('interaction');
        if (interactionGR.get(current.parent_interaction)) {
            current.description = interactionGR.u_description;
        }
    }

})(current, previous);
0 REPLIES 0