logo

NJP

How to Copy Multiple Field Values in a single field using Business Rules?

Import · Jan 09, 2023 · article

// Add your code here

if (current.parent_incident != '') {

var cat = current.parent_incident.category.getDisplayValue();var subcat = current.parent_incident.subcategory.getDisplayValue();var sd = current.parent_incident.short_description.getDisplayValue();

var d = current.parent_incident.description.getDisplayValue();

current.description = 'Category:- ' + cat + '\n' +'Sub-Category:- ' + subcat + '\n' +'Short Description:- ' + sd + '\n' +'Description:- ' + d;}

})(current, previous);

If my video/content helped you in any way, please mark this video/content as BOOKMARK, SUBSCRIBE & HELPFUL

Best Regards,

Prashant Kumar (LearnIT)

YouTube Channel LearnIT: https://www.youtube.com/@learnitwithprashant

Blog LearnIT: https://medium.com/@LearnITbyPrashant

Prashant Kumar LinkedIn: https://www.linkedin.com/in/learnitbyprashant/

ServiceNow Community Prashant Kumar - https://www.servicenow.com/community/user/viewprofilepage/user-id/19635

View original source

https://www.servicenow.com/community/developer-blog/how-to-copy-multiple-field-values-in-a-single-field-using/ba-p/2437065