Email parse - JSON
Can LiveHelpNow parse JSON formatted emails into tickets?
Please follow these steps to accomplish Email parse containing JSON object.
- Make sure JSON you would like parsed is included in the email's Text MIME and not HTML MIME. It is best to send email without HTML MIME part so email is sent as plain text body containing JSON you want parsed.
- Indicate that email is sent for JSON parse by either including email header
X-LHN-JSON: YES
- JSON format:
{"ticket": { "action": "create", "fields": { "name": "John Smith", "email": "[email protected]", "subject": "Order 1234", "body": "Order info for #1234" } } }
You may optionally include Category and Priority fields:
{"ticket": { "action": "create", "fields": { "name": "John Smith", "email": "[email protected]", "subject": "Order 1234", "body": "Order info for #1234", "category":"Sales", "priority":"Low" } } }