Add Parent Contact to Child Case Wishlist

Michael_Nash
Tera Contributor

I have a Requirement to Add Parent Contact to Child Case Wishlist.

 

I have multiple case types all extending the case table "sn_customerservice_case"

 

sn_customerservice_warranty
sn_customerservice_solutions_service
sn_customerservice_solutions_parts
n_customerservice_service_parts_engineering

 

They can all create child cases of each other.

4 REPLIES 4

ersureshbe
Giga Sage
Giga Sage

Hi, Create a business rule or flow to achieve this.

when new record insert incase table you allow to create the entry in mentioned table using intialize() and insert() functions.

Regards,
Suresh.

@ersureshbe 

 

I currently have a on before business rule on the Taks table to add the opened by to watchlist in global scope.

 

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

// Add your code here
current.watch_list = current.opened_by;

})(current, previous);

 

Could I modify this to cater for both needs?

 

 

 

 

I recommend to use flow designer and create it. Is above script is not working? Normally current.update() not to use. For test purpose, add this line and test it, Current.update() not advisable to use in the code.

If you add, it will affect the health scan report.

Regards,
Suresh.

I was trying the flow designer but I'm not 100% familiar with it would you be able to guide me on this?

 

worth noting this child case is created in worspace