Using fd_data in REST Step of Flow Action?

David115
Tera Expert

I'm trying to dynamically create a Request Body in a REST step in a Flow Action to only include certain information when needed.

The issue I'm running into is I can't seem to access the Input Variables using fd_data.

1. Can you access the Input Variables in a Flow Action using fd_data? How?

I've tried things like:

inputs.fd_data.action_inputs.serviceName
fd_data.action_inputs.serviceName
fd_data.current.action_inputs.serviceName
fd_data.trigger.action_inputs.serviceName
fddata.png
2. I've seen some screenshots that have an fd_data popup with options, like an autocomplete. How do you activate that? Not my screenshot, just meant to illustrate what I'm talking about.
options.png
Thank you
5 REPLIES 5

rajan01
Tera Contributor

Hi David,

 

Have you been able to discover a solution for this specific use case?

 

Regards

Rajesh.

No, I ended up dynamically creating the request body in a Script step, outputting it as a string, and then using that data pill as the request body in the REST Step.

20sboehm
Tera Contributor

Ensure that you are calling the variable by its name and not it's label.

 

For example:

20sboehm_0-1702070722565.png

 

In this case, the correct way to access this variable would be:

fd_data.action_inputs.requestid

 

Got a similar issue.  I have an Action input called "incident", which is a reference to the incident table.

poyntzj_1-1711127712911.png

 

In my code I type in + fd_data.  When I press the period, I can choose the type, so I choose action_inputs

press the period again, and I can then see and choose "incident". Press period again and I can see an attribute, so I choose "number"

 

 

 

 

 

poyntzj_7-1711127892716.png

and end up with a line such as

var blah = '\nNumber: ' + fd_data.action_inputs.incident.number;

 

Try to test and select an existing incident number and I get 

poyntzj_0-1711127686137.png