Form Trigger Expected ';' Error. Help Please

Forum for users and developers of Bullhorn's API service.

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
jbungay
User
Posts: 17
Joined: Tue Apr 05, 2011 12:01 pm

Form Trigger Expected ';' Error. Help Please

Post by jbungay » Mon Jul 08, 2013 3:36 pm

Hi
I trying to set up a form trigger using c#. I trying to simply return a true result and i am getting the following error

******************************************
Error calling remote trigger.
'An error occurred in the handler function. (Expected ';')'

Code snippet
**********************************************************************
class response
{
public string result;
public string error;
}

response resp = new response();
resp.result = "true;";
resp.error = "";

string json = new JavaScriptSerializer().Serialize(resp);
Response.Clear();
Response.ContentType = "application/json; charset=utf-8";
Response.Write(json);
Response.End();

Post Reply