Email parse - JSON

Can LiveHelpNow parse JSON formatted emails into tickets?

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