Support Center > Knowledge Base> Article: Email parse - JSON

Email parse - JSON

Article ID: 87491 Email Print
Question
Can LiveHelpNow parse JSON formatted emails into tickets?

Answer

Please follow these steps to accomplish Email parse containing JSON object.

  1. 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.
  2. Indicate that email is sent for JSON parse by either including email header 
    X-LHN-JSON: YES

     

    or  by including LHN-JSON in the subject of the email (simply have LHN-JSON included anywhere in the subject of your email).
  3. JSON format:

    {"ticket": {
        "action": "create",
        "fields": {
            "name": "John Smith",
            "email": "john.smith@john.smith.com",
            "subject": "Order 1234",
            "body": "Order info for #1234"
             }
        }
    }  

    You may optionally include Category and Priority fields:

    {"ticket": {
        "action": "create",
        "fields": {
            "name": "John Smith",
            "email": "john.smith@john.smith.com",
            "subject": "Order 1234",
            "body": "Order info for #1234",
    	"category":"Sales",
    	"priority":"Low"
             }
        }
    }  

     

 


Related articles

Article Details
Views: 6217 Created on: Dec 16, 2016
Date updated: Dec 17, 2016

Poor Outstanding