We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Custom action in script throwing error in flow designer

SHALIKAS
Tera Guru

I created a custom action in flow designer to execute the following script -

SHALIKAS_0-1713272103635.png

But it is showing error as fd_data not defined. Here coned_variable_set is the name of the workflow

1 ACCEPTED SOLUTION

Cris P
Tera Guru

Hi,

 

The Flow Action does not have access to the fd_data object directly.

 

Instead you will have to pass this object via the "inputs" of the Flow Action, so in your flow action, create an input as below:

CrisP_0-1713275728617.png

Then in your Flow Action script you can access the input like this:

CrisP_1-1713275772946.png

 

Then, to actually pass the data to the input, go back to your Flow, from which you are calling your action, and pass the fd_data object using the picker:

CrisP_2-1713275816939.png

 

View solution in original post

2 REPLIES 2

Cris P
Tera Guru

Hi,

 

The Flow Action does not have access to the fd_data object directly.

 

Instead you will have to pass this object via the "inputs" of the Flow Action, so in your flow action, create an input as below:

CrisP_0-1713275728617.png

Then in your Flow Action script you can access the input like this:

CrisP_1-1713275772946.png

 

Then, to actually pass the data to the input, go back to your Flow, from which you are calling your action, and pass the fd_data object using the picker:

CrisP_2-1713275816939.png

 

Like I want to access the variables from a variable set, in that case how can I add the input