Use field from trigger in custom actions in Flow Designer

Miguel_M
Tera Contributor

Hello,

 

I am trying to create a custom Flow in order to connect to an external API when an specific type of task is created. The idea is to send info from some fields in that task in the API call, but even if in the Flow I can select in the data picker any field from the trigger form:

Miguel_M_0-1708531295704.png

In the action I cannot retrieve them:

Miguel_M_1-1708531349943.png

Until here, this makes sense, because I am created two different things, but the main goal here is to use this action in the Flow, so it feels natural that the flow trigger task fields should be usable in the Action. Is there any way to do this? 

For now I did a workaround which was to create a script that gets the field from the last item created of that type in the last minute, but this is not really cool.

 

Best regards,

Miguel

1 ACCEPTED SOLUTION

in your action, click on that variable input button and create new input type, it will be visible on flow like below.

 

HarshadWagh_0-1708616276730.pngHarshadWagh_1-1708616325024.png

 

View solution in original post

4 REPLIES 4

Harshad Wagh
Tera Guru

well, if we see the first screenshot, i dont see you connecting the action you created to your flow.

 

just click on that add an action + sign and select the action you created and pass the triggered value as input, you will see it once you add it.

 

Best regards,

Harshad

 

 

Hi Harshad, yes sorry, I did the screenshots in a new one I created for testing and hadn't added the action yet:

 

Miguel_M_1-1708591169739.png

But a this point, how can I add the value as an input? 

 

Thanks a lot.

Best regards,

Miguel

in your action, click on that variable input button and create new input type, it will be visible on flow like below.

 

HarshadWagh_0-1708616276730.pngHarshadWagh_1-1708616325024.png

 

Wow, thanks a lot. I think I was expecting it to just pop up without saving and publishing the edited action after adding the input, but needed to do that and then reload the flow designer.

 

Thanks again!