HTTP Webhook input arguments from RAW body API Call?

I am using the event trigger http webhook, i POST this to the URL

How can i see the RAW body information in orchestrator and use the RAW info in my automations?

Hi @lr101

You can access the RAW webhook body using:

trigger payload
Add a Log Message activity to print it in Orchestrator logs.
If needed, deserialize the payload:
JsonConvert.DeserializeObject(triggerData.Payload.ToString)

Then access values like

jsonObj(“email”).ToString

If solution work for you please mark as solution

Thanks

Hi @nishi_jain
Thanks for the reply,
but i cannot see triggerData in UiPath, do i need an extra package?

@lr101

do you have a connected trigger or disconnected?

if connected then the output of webhook trigger can be used to get the text content and it would contain the raw body

if disconnected we can use get event details Activities - Get Trigger Event Output

check here for full setup

cheers

We do not use Integration services, we need to do it in a way that doesnt use connectors. is there a way?

Hi @lr101 ,
If the issue is still not resolved, you can continue like this:

You need to create a variable manually first.

  • Variable Name: triggerData
  • Variable Type: Object

Then select the HTTP Webhook Trigger activity and check the Properties panel.
Look for properties like:

  • Trigger Data
  • Event Args
  • Output

Map that value to the triggerData variable.

After that, you can use:

“triggerData.ToString”

If the payload is in JSON format, deserialize it using:

“JsonConvert.DeserializeObject(triggerData.ToString)”

Then access fields like:

“jsonObj(“email”).ToString”

Also make sure UiPath webhook package is installed

Thanks.

@lr101

Then what webhook are you tryign to create?

as of now the only way to send data via webhook is webhook activity

if you want to trigger a process then no webhook is needed instead you can use orch api calls to trigger and also send data as part of input arguments

cheers

Hi @lr101,

If your requirement is only to trigger the automation, you can use an API Trigger.

If I understand correctly, you want to trigger a process using an API and also pass some data that will be used by the bot.

In that case, you need to create an automation in Studio Desktop with the below activity.

Thanks