Object to field while using shared workflow

While calling a shared workflow, output fields are coming as Object type in the parent workflow. Because of this, calculations and comparisons fail in all step.
What is the correct way to convert Object type to Number/String/Date in Process Studio?

Hi,

You can handle this through the Copy Rows to Result step in the Shared Workflow.

Please follow these steps:

1. In the Shared Workflow:

  • Add the Copy Rows to Result step.
  • Configure the workflow to pass the required output fields to the parent workflow.

2. In the Parent Workflow:

  • Open the Shared Workflow step configuration.
  • Navigate to the Result Rows section.
  • Specify the output field names exactly as defined in the Shared Workflow.
  • Select the appropriate data type for each field, such as Number, String, or Date.

The conversion is driven by the parent workflow’s Result Rows mapping, not by casting the whole result object later. In the shared workflow, make sure Copy Rows to Result exposes individual scalar fields rather than a single row/object. Then in the parent, map those exact field names and set Number/String/Date. If a field still shows as Object, verify the name/case and that it is a scalar column; use the mapped result field in calculations, not the entire result row.