Trying to grab a number from this JSON:
{
"event":"shipment.status_update",
"status":"in_transit",
"updated_at":"2017-12-08T03:29:24.591+00:00",
"shipment_id":2023431,
"shid":2023431,
"shipment_public_id":"shp_tnwr4GjD",
"order_number":"MF17966",
"source_system_id":null
}
Need to extract the number after shid. In this case, 2023431.
Edit:
What I'm trying to do is build a Zapier workflow that:
- Catches a raw hook
- Runs a Javascript that outputs the shid value from above
- Then I'm going to use that value to call a webservice
- And finally send an email to an individual
I'm able to catch the hook and don't anticipate any trouble with the 3rd and 4th part of the workflow. But capturing that shid is proving troublesome.
So far I've tried using the following in the Code element:
shid = (inputData["shid"]);
output = shid;