API Trigger - Read POST Request's Body

Hi all,

I have set up an API Trigger that listens to POST requests that I will send on an external web application, specifically on a form submission.

The use case would be that a user inputs a 6 digit code in a web application, and when the user submits, I send the code through a POST Method to trigger an UiPath automation receiving the code.

So far I have been able to execute my job by hitting “Submit” on my web application, and I can see the code is received by my UiPath job.

The problem is now I cannot read the code inside my UiPath automation.

Please see the screenshots attached on the job details and the logs.


@Matias_Tika

how are you logging your input CODE in your UiPath code. are you accessing the input args or something else and are you using .tostring?

Hi, thanks for your response.

I have solved it. Looks like I made a mistake when naming the argument in my web application’s request. It was called “code” which could not map to my “in_Code” naming in UiPath automation.

Now I modified my web-app request to send “in_Code” exactly like the UiPath argument and it works!

Regards

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.