External API for posting data

Avatar

Avatar

michellelowsl

Avatar

michellelowsl

michellelowsl

18-09-2020

Hi there, 

 

Has anyone tried external Api for Posting data to external API

I tried to use it but noticed it only tried to retrive data from the endpoint.

Is it only used for GET data?

 

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

pushkar_k

Employee

Avatar

pushkar_k

Employee

pushkar_k
Employee

01-10-2020

Hello,

 

ExternalApi activity can perform a POST call too. You can define whatever valid json you want to send as POST body in the Customize Parameter section under Inbound Mapping tab. You can view the POST body that will be used for the request under POST body template section (which is greyed out and is read-only). If there is something in that section, it means externalApi activity will do a POST call.

 

Thanks.

Answers (2)

Answers (2)

Avatar

Avatar

Sukrity_Wadhwa

Employee

Avatar

Sukrity_Wadhwa

Employee

Sukrity_Wadhwa
Employee

01-10-2020

Hi @michellelowsl,

Were you able to resolve this query with the given solution? Do let us know.

Thanks!

Avatar

Avatar

DavidKangni

MVP

Avatar

DavidKangni

MVP

DavidKangni
MVP

21-09-2020

Hi,

The activity also can do HTTP POST to web services.

 

You can try:

* Define any query (can have record count 0)

* Then define any field mapping in the outbound mapping

This then shall trigger a POST call.

 

Thanks,

David