Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to create dictionary overides

devservicenow k
Tera Contributor

My requirement is 

how to do description autofill and not override  in incident .

how to do this ? any one has idea?

1 ACCEPTED SOLUTION

Nootan Bhat
Mega Sage

Hi @devservicenow k ,

You can use the After business rule, Filter condition is : Description Changes.

NootanBhat_0-1671527239444.png

 

in Script write:

(function executeRule(current, previous /*null when async*/ ) {

    if (previous.description && current.description !='') {
        current.description = previous.description + " and " + current.description;
        current.update();
    }
	if(current.description == ''){
		current.description ='';
		current.update();
	}
	
})(current, previous);

 Let me know if it helped.

 

Thanks

Nootan

 

View solution in original post

6 REPLIES 6

Sebas Di Loreto
Kilo Sage

@devservicenow k 

In general, it is a bad idea to put data and then removing it for the exception. 

You are taxing the system unnecessarily. You should instead be looking for a way not to enter the data on the exception on the first place.


If I helped you with your case, please click the Thumb Icon and mark as Correct.


himanshu_deep
Tera Contributor

This video might be helpful.