Extracting Data from Webhook

Extracting Data from Webhook

Hi,

I'm extracting Data from a Webhook in Zoho Flow and it is coming in the following format:

{
	"webhookTrigger": {
		"headers": {
			"content_type": "application/json",
			"host": "flow.zoho.in:443",
			"connection": "close",
			"content_length": 474,
			"accept": "application/json"
		},
		"payload": {
			"instanceId": 311610,
			"messages": [
				{
					"chatId": "919814999991@c.us",
					"messageNumber": 50297,
					"author": "919814888881@c.us",
"ack": 1, "chatName": "Sushant", "fromMe": true, "body": "Lead000001 nextcall 60", "type": "chat", "senderName": "Nirmal", "self": 0, "id": "true_919814999991@c.us_0757B02CBE43EF4797D23D222E64FD87", "time": 1628072466, "isForwarded": 0 } ] } } }

I need to extract the body and the chatId.
I created a variable "received_message" and linked it to ${webhookTrigger.payload.messages}
But the thing is, it attains a text value as the messages contains square brackets [ ]
How do I extract the data in body and chatId?


      • Sticky Posts

      • How to Add Users to your Organization in ZohoMail?

        A better clarity so you can create other users to start using Zoho Mail. You can directly Add Users from the Control Panel to your Organization. You can invite users with the existing email address. If the person (user) already uses ZohoCRM, then you can import users from Zoho CRM. You can also import them using a .csv file. (if you are planning to add them in Bulk)  In this topic, We will be discussing on how to Add and Invite users only.  The Import options are self explanatory. ____________________________________________________________________________________________________________