Expand my Community achievements bar.

SOLVED

ACS External API

Avatar

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

Avatar

Correct answer by
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

Avatar

Level 1

Did you use javascript to trigger the API?

Avatar

Correct answer by
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