Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Flow Designer Custom Action Output Variable not populating data in Flow

Satanik1
Giga Guru

Hello EXperts,

I have a custom action to populate data in a flow. Although it is showing the result when I test the custom action separately, but in flow, the output is populating empty value. But the input value is taking correct result.

Below screenshots are given:

find_real_file.png

find_real_file.png

find_real_file.png

 

Result:

find_real_file.png

 

Kindly help.

Thanks
Satanik

 

1 ACCEPTED SOLUTION

I can see these options in the first if statement:

"3200|MIAMI-10|EXDS24"
"3200|REMOTE-AZ|EXDS24"
"3200|MIAMI-10|EXDS24"

none of them will match the string:

"3200 | REMOTE | EXDS24"

View solution in original post

4 REPLIES 4

OlaN
Tera Sage
Tera Sage

Hi,

As far as I can see, you are sending the string "3200 | REMOTE | EXDS24" as input to your custom action.

But in your script, there is no case for handling this string.

Maybe you need an else-statement to handle all cases that doesn't match your current options?

Hi olan,

Thanks for your response.

If you see in the script, the 3200 | REMOTE | EXDS24 value is present in the first "if" condition. So ideally it should give the related mailbox value in response. Am I right ?

Thanks
Satanik

I can see these options in the first if statement:

"3200|MIAMI-10|EXDS24"
"3200|REMOTE-AZ|EXDS24"
"3200|MIAMI-10|EXDS24"

none of them will match the string:

"3200 | REMOTE | EXDS24"

Hi olan,

Fixed it finally. It was my fault. Actually in the flow, I have been using another data pill as the custom action input value instead of the actual one which I had to use.

But all thanks to you since your identification was also correct which made me go through my whole flow once again for any other mistakes. And I found this.

Thanks,

Satanik.