Question
Infosys
IN
Last activity: 17 Feb 2021 10:12 EST
Restrict Case creation on add task when user want to create case second time.
Hi All,
I have a requirement like, we have interaction intent task on click of Add Task the user selecting Test case to create a case now user created a case, now again on same page user click on add task on second time we dont want to show the Test case option again. please help how to handle this scenario.?
please find attachmenet
Thanks,
sadhana
***Edited by Moderator: Lochan to update platform capability tags***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
Hi Sadhanag,
We are fetching the results from D_Interaction_driver page and displaying the Intent tasks under AddTask.
If you don't want to display the task once it is launched , you should not add that task to the page and page should get reloaded again.
In "CPMGetIntentTaskByCategory" activity at 10.3 step we are copying the intent task results to D_Interaction_Driver datapage based upon two when condition as shown in the below.
To achieve your requirement, either you can add one more when condition to check whether the service case is present in D_CPMServiceCaseRecents[D_CPMPortalContext.pyID] and you need to reload the datapage D_Interaction_Driver (by referring the page in the activity) so that it will be loaded again and the intent task will be removed from the datapage.
Or
Hi Sadhanag,
We are fetching the results from D_Interaction_driver page and displaying the Intent tasks under AddTask.
If you don't want to display the task once it is launched , you should not add that task to the page and page should get reloaded again.
In "CPMGetIntentTaskByCategory" activity at 10.3 step we are copying the intent task results to D_Interaction_Driver datapage based upon two when condition as shown in the below.
To achieve your requirement, either you can add one more when condition to check whether the service case is present in D_CPMServiceCaseRecents[D_CPMPortalContext.pyID] and you need to reload the datapage D_Interaction_Driver (by referring the page in the activity) so that it will be loaded again and the intent task will be removed from the datapage.
Or
You can set the ShowinList property value to false for the corresponding intent task after the intent is launched.We are checking this property value at first when condition of 10.3 step,so if the value is false it won't get copied to the D_Interaction_Driver and after this the page must be reloaded.
Pegasystems Inc.
IN
Hello,
You can configure the disable condition on Label in CPMDisplayTaskInMenu section based on your requirement i.e. you can check the is the case is already created or not by looking to pxResults of D_CPMServiceCaseRecents[D_CPMPortalContext.pyID].
Regards,
Praveen
Infosys
IN
Thanks praveen,
I tried this approve and its not working because the interaction is not getting refreshed on second on click of add task.
please suggest any other approach.
Infosys
IN
Let me provide more details,
suppose When Insurance case is created from an Interaction, and again if user click on add task user is able to create one more case from the same interaction case.
my requirement is to if already case is created then user should not create another case and if they click on add task the insurance case option should not be available for user to create case.
Thanks,
sadhana
Accepted Solution
Pegasystems Inc.
IN
Hi Sadhanag,
We are fetching the results from D_Interaction_driver page and displaying the Intent tasks under AddTask.
If you don't want to display the task once it is launched , you should not add that task to the page and page should get reloaded again.
In "CPMGetIntentTaskByCategory" activity at 10.3 step we are copying the intent task results to D_Interaction_Driver datapage based upon two when condition as shown in the below.
To achieve your requirement, either you can add one more when condition to check whether the service case is present in D_CPMServiceCaseRecents[D_CPMPortalContext.pyID] and you need to reload the datapage D_Interaction_Driver (by referring the page in the activity) so that it will be loaded again and the intent task will be removed from the datapage.
Or
Hi Sadhanag,
We are fetching the results from D_Interaction_driver page and displaying the Intent tasks under AddTask.
If you don't want to display the task once it is launched , you should not add that task to the page and page should get reloaded again.
In "CPMGetIntentTaskByCategory" activity at 10.3 step we are copying the intent task results to D_Interaction_Driver datapage based upon two when condition as shown in the below.
To achieve your requirement, either you can add one more when condition to check whether the service case is present in D_CPMServiceCaseRecents[D_CPMPortalContext.pyID] and you need to reload the datapage D_Interaction_Driver (by referring the page in the activity) so that it will be loaded again and the intent task will be removed from the datapage.
Or
You can set the ShowinList property value to false for the corresponding intent task after the intent is launched.We are checking this property value at first when condition of 10.3 step,so if the value is false it won't get copied to the D_Interaction_Driver and after this the page must be reloaded.
Infosys
IN
Thanks for your responce chinn2
finally its working now, i have added pre loading activity on section where the CPM interaction menu are displaying.
The activity logic checking the D_interaction_driver page if the case is already created then i am doing the property remove,
D_Interaction_Driver[InteractionId:pyWorkPage.CAParentID].DriverCategories(Param.CategoryIndex).pxResults(Param.SubCategoryIndex)