Need to populate Planned start date and planned end date in change task from change request.

Gouse
Tera Expert

Hi All,

After creating the change request with planned start date and planned end date fields. Automatically populate these dates in all change tasks.

Thanks in advance

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Gouse 

Are you saying you want those fields to be auto-populated when change_task is created?

if yes then you can use before insert BR on change_task and set the fields

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

	// Add your code here
	current.start_date = current.change_request.start_date;
	current.end_date = current.change_request.end_date;

})(current, previous);

OR

You can also use flow designer to set the fields with no script

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

10 REPLIES 10

yes i got your point and try our code its working

thanks