Use variables from in next task in request body

Hi Camunda community,

I’m a bit new on my way with Camunda, but got my first good results. Actual I didn’t find the answer for a maybee easy thing, if you know the right context.

  1. I build an user task with easy formular, to get two input parameter - all good
  2. I want to use the parameter from the formular in my second task, a REST API call. The REST API Call is fine, when I use this request body
{
  "toPersonEmail":"mail@mail.de",
  "text": "TestNachricht Camunda Paramter"
}
  1. But I want to use the variables from my first task for the mail and the text. So I tried many many things, nothing works
{
  "toPersonEmail": "${toPersonEmail}",
  "text": "TestNachricht Camunda Paramter"
}

Hi, you are using the variables Camunda 7 style. In Camunda 8 you need to use FEEL. I think instead of "${toPersonMail}" you can just write toPersonMail.

Try it like this (as @cma suggested)

{
  "toPersonEmail": toPersonEmail,
  "text": "TestNachricht Camunda Paramter"
}

Thank you, this worked for me very good - case closed!

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