Workflows

Workflows

Object value reference from workflow task

Hello. I have a question about referencing an object value (Json format I think) from a workflow task.

For example, I get this object from the output of the following task

object returned:

{"CodeDesc":"Test Code ","User":"Test User","Email":"test@email.com"}

let say that this could be the first row in a given dataset, ok?

So, after that, I want to send an email to the "Email" address obtained from that task, for example using this:

The thing is, It's posible to make a reference to the "Email" directly from the "to" field in the sendEmail function?
In other words, It's ther a way that I can use something like {{object[2]}} in the "to" field of that task?

Thanks in advance.

Tagged:

Welcome!

It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign In

Best Answer

  • Coach
    Answer βœ“

    You should be able to use your code function to extract the email address out of the JSON with some javascript and then send your email.

    Site faviconCustomer Support Community

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**

Answers

Welcome!

It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign In