Are you using SOAP or REST?
2 of 2 people found this helpful
Thanks for the response Florian, I've managed to work it out
Code for anyone interested.
string username = "";
string password = "";
string tenant = "";
string role = "";
string ticketNo = "";
string key = null;
FRSHEATIntegration frSvc = new FRSHEATIntegration();
FRSHEATIntegrationConnectionResponse connectresponse = frSvc.Connect(username, password, tenant, role);
if (connectresponse.connectionStatus == "Success")
key = connectresponse.sessionKey.ToString();
ObjectQueryDefinition changeQuery = new ObjectQueryDefinition();
FieldClass changeFieldObjects = new FieldClass
Name = "RecId",
Type = "Text"
changeQuery.Select = new SelectClass();
changeQuery.Select.Fields = changeFieldObjects;
changeQuery.From = new FromClass();
changeQuery.From.Object = "servicereq";
changeQuery.Where = new RuleClass
Field = "ServiceReqNumber",
Value = ticketNo
FRSHEATIntegrationSearchResponse changeSearchResponse = frSvc.Search(key, tenant, changeQuery);
WebServiceBusinessObject changeList = changeSearchResponse.objList;
WebServiceBusinessObject change = changeList;
string changeRecId = change.RecID;
ObjectCommandData data = new ObjectCommandData();
data.ObjectType = "ServiceReq#";
data.ObjectId = changeRecId;
List<ObjectCommandDataFieldValue> dataFields = new List<ObjectCommandDataFieldValue>();
Dictionary<string, object> fields = new Dictionary<string, object>();
fields["Status"] = "Fulfilled";
foreach(string a in fields.Keys)
Name = a,
Value = fields[a].ToString()
data.Fields = dataFields.ToArray();
FRSHEATIntegrationUpdateBOResponse response = frSvc.UpdateObject(key, tenant, data);
if (response.exceptionReason != null)
Alright, so you're using SOAP. You could use REST as well - that's why I was asking.
To make things like this easier I can recommend you to use soapUI in the first place.
-> If everything is functioning here as it should you can start writing your own code.
So HEAT SM supports REST? I was told by company reps that was something they were working on. Where is this documented?