Record URL generated through workflow routes the user to default app

The article explains on how to create a record url for an entity with appid.

Applies to:   Microsoft Dynamics CRM
Original KB number:   4527623


Users when navigating through Record URL generated from workflow will be routed to the default app module and not to a specific app module.


Workflows generate legacy Web client url, the legacy Web client url doesn't contain appid information eventually routing user to the default app module.


We can create a custom workflow activity to append appid to record url that will route user to the required app.

  1. Create a custom workflow activity that accepts two input arguments, that is, Record URL and AppId.
  2. Accept the two input parameters, create output parameter by appending AppId to Record URL.
  3. The output argument of the custom workflow activity can now be used in later steps.
  4. Since url created in output argument contains app module related information, user will now be routed to the required app module (based on the appid present in the url).