MATLAB: Passing data from ThingHTTP to IFTTT Webhook send email

email bodyiftttparameter passingThingSpeakwebhooks

I have the following code in the "body" section of the ThingHTTP:
{"Value1":"%%channel_<my_channer_ID>_field_1%%";"Value2":"%%trigger%%";"Value3":"%%channel_id%%"}
I have tried various formats in the above json document but no luck.
Everything works – i.e. the React App fires, which calls the App ThingHTTP and finally the IFTTT webhook which sends me an email.
BUT without the data I'm trying to pass via the "ValueX" keyword pairs.
the body of the email (shown below) is correctly populated EXCEPT for the "ValueX".
I've failed to find the issue and asking for second pair of eyes…
Thanks
Mohsin
Email SUBJECT:
The event named "{{EventName}}" occurred at {{OccurredAt}} on the Maker Webhooks service
email BODY:
What: {{EventName}}<br>
When: {{OccurredAt}}<br>
Temperature: {{Value1}},<br>
Light Intensity: {{Value2}},<br>
Noise level: {{Value3}}.<br>
<br>
PLEASE TURN OFF THE LIGHTS.<br>
<br>
Thanks<br>
MMJ<br>
Email SUBJECT:
The event named "IFTTT_Trigger_TooBright" occurred at January 27, 2020 at 04:57PM on the Maker Webhooks service
email BODY:
What: IFTTT_Trigger_TooBright
When: January 27, 2020 at 04:57PM
Temperature: ,
Light Intensity: ,
Noise level: .
PLEASE TURN OFF THE LIGHTS.
Thanks
MMJ

Best Answer

I reccomend you use the new alerts feature in ThingSpeak. You wont need IFTTT at all! you can pass data in the subject and the body of your email.
There is a terrific overview at the Alerts API doc page, and you can see all the links to the specific pages for the functions and the example in the release notes.
Also you can have a look at vinods answer on a previous answer.
Related Question