Equivalent of CamundaForm.prototype.submit for Update

Hello,

I need a method for updating camunda form variables without completing the task.
Is there an equivalent of the method CamundaForm.prototype.submit for Task.update?

Thx.

Hi,

I think you are looking for this : update variable

If you are using the camunda-sdk-js, I don’t remember if this call if already implemented, otherwise, you can simply do a http request

Romain.

Thank you for your response.

I’ve tried doing that but something doesn’t work properly.
I managed to make the request body look like this:
{“modifications”:[“name”:{“value”:“TestNameasd”,“type”:“String’”}]}
and still the value comes unchanged.

If you have any ideas why that is, I’ll greatly appreciate it.

Andreea.

Hi @AndreeaS,

I think the problem is that you used a JSON array instead of an object.

This request body should work:

{
  "modifications": {
    "name": {
      "value": "TestNameasd",
      "type": "String"
    }
  }
}

Cheers,
Tassilo

@AndreeaS

May we know the URL you invoked, Please…