Question
1
Replies
253
Views
Cognizant Technology Solution
Posted: September 26, 2019
Last activity: September 26, 2019
Closed
Creating parent and child workobject on click of button
Hi Team
I have a question.I want to create a parent and corresponding child work object on click of a button. Can I do it by calling one add work activity from the on click activity or I have to do it twice. Please suggest me a design
***Edited by Moderator: Lochan to update platform capability tags***
Hi,
I think when you use addwork activity you need to provide the class context and since you will be able to provide only one class context at a time so you will be able to use one activity for one case creation.
In your use case you want to create work object for both parent case and child case so you will have to use to the activity twice.
When you use create case smart shape you do have the option to create multiple child case but that will also of same case type (i.e. same class context).
You always have the option to save as the activity and in single activity run the same set of steps twice once for parent case and once for child case. When you are calling this custom activity you will pass both the class as parameter.
May be someone can share if there is any work around to use the activity once and create the work object for two different class.
Regards,
Vikash