Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

ACS External API

nagendrar190415
Level 1
Level 1

Hi 

 

In ACS i had used the External API in one of the workflows to trigger an External REST Api. This was working all fine, but now I see that ACS is doing a "GET" call instead of a "POST" call on the API and the API is returning a 404 status. 

 

Any insights on how to change this config in ACS would be helpful. 


Thanks

Nagendra

1 Accepted Solution
pushkar_k
Correct answer by
Employee
Employee

Hi Nagendra,

By default, external Api only does a GET call to the external endpoint. In order to do a POST call, there has to be some json in Post Body Template section under Inbound Mapping tab in External Api activity. 

1. Either you can add a query (or similar) activity before externalApi activity and define some field mapping in the Inbound columns section.
2. Or you can add some random valid json in the Customize Parameter section.

This will then get added to the postbody template section and will make a POST call to your endpoint.

-Pushkar

View solution in original post

2 Replies
DimaKudriavcev
Level 1
Level 1

Did you use javascript to trigger the API?

pushkar_k
Correct answer by
Employee
Employee

Hi Nagendra,

By default, external Api only does a GET call to the external endpoint. In order to do a POST call, there has to be some json in Post Body Template section under Inbound Mapping tab in External Api activity. 

1. Either you can add a query (or similar) activity before externalApi activity and define some field mapping in the Inbound columns section.
2. Or you can add some random valid json in the Customize Parameter section.

This will then get added to the postbody template section and will make a POST call to your endpoint.

-Pushkar

View solution in original post