Getting variables with full value (non-truncated) for a process instance

Hi all. I am currently calling Operate API /v1/variables/search to search for all variables within a process instance. However, some large value will be truncated. In this case, not only I couldn’t parse the json but also it becomes missing data to my client.

Anyone could help to advise me what I should do to retrieve the full value of all variables in a process instance please? Many thanks!

@shortynelson Indeed the Operate API /v1/variables/search will return truncated values for large values.

Use GET /v1/variables/variableId to get those variables value which are truncated and update the value.

2 Likes

Hi @shortynelson,

Set truncated attribute to false

{
  "filter": {
    "truncated": false,
  }
}

Hi Hassang. I tried. Setting truncated to false, will only return variables with non-truncated values. It is just a filter, not a instruction telling Camunda do not truncate the values.

1 Like

Hi Aravindhrs, it works! Thank you!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.