How to switch between Team (Work Groups) from End User portal

We have multiple applications running on the same Pega instance, and each application has its own team (work group). Additionally, one operator can work on multiple applications.

In the operator profile, we have the option to add multiple teams (work groups). However, there can only be one default team in the operator’s profile, similar to an access group.

When we use the out-of-the-box Pega Cosmos portals, the manager should be able to see the work queues and operators assigned to a particular team.

Unfortunately, with the current behavior, even if we switch to a new application, the default team (work group) value will not change. This prevents the manager from being able to see the work queues or team members that belong to a particular application.

Do you have any suggestions for how to overcome this issue?"

@MAX0716 you can apply the logic to change work group before the application switch script run.

You can run a DT before that. In that you can first get the appropriate Work group name using dpage. Then you can set this WG to

  1. OperatorID.pyWorkGroup

  2. pxRequestor.pyWorkGroup

  3. D_PortalContextGlobal.pyActiveWorkGroup

@Anoop Krishna This seems to work. Thanks a lot.

@ShreeramK4150 Where do you put the data transform, since the relevant navigation rule is marked as Final?