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.

Send API using workflow

LJ_23
Tera Contributor

Hi All, 

I have created an approval workflow, all steps seem to work apart from the send API outbound step

LJ_23_0-1764865939578.png

LJ_23_1-1764866024078.pngLJ_23_2-1764866059109.pngLJ_23_3-1764866080828.pngLJ_23_4-1764866101568.png

could someone take a look and let me know what is the issue to send the outbound api message 

 

3 REPLIES 3

Chaitanya ILCR
Mega Patron

HI @LJ_23 ,

1.check if FStest script include exists and it's accessible from all scopes (else make it accessible from all scopes)

2. check the sendMessageToCounterAct is a valid method inside the script include

 

ChaitanyaILCR_0-1764866921481.png

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

LJ_23_0-1764867202781.png

Yes I have checked this

Hi @LJ_23 ,

I see the issue

you have named the script include as FStest but the variable  "FSSendMessageToCounterAct" ReplaceAll "FSSendMessageToCounterAct" with FStest inside the script 

 

also check method "sendMessageToCounterAct" is part of the script include 

 

if you are still facing the issue please share the script here

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya