Exemplo n.º 1
0
 public RequestedItem SubmitRequestItem(string itemId, string requestId)
 {
     try
     {
         string itemUrl  = startURL + @"sc_req_item";
         string itemBody = "{'request':'" + requestId + "', 'cat_item':'" + itemId + "'}";
         var    result   = (RequestedItems)uploadServiceNow(itemUrl, typeof(RequestedItems), itemBody);
         return(result.result[0]);
     }
     catch
     {
         RequestedItem u = new RequestedItem();
         u.noResultData = true;
         return(u);
     }
 }
Exemplo n.º 2
0
 public RequestedItem SubmitRequestItem(string itemId, string requestId)
 {
     try
     {
         string itemUrl = startURL + @"sc_req_item";
         string itemBody = "{'request':'" + requestId + "', 'cat_item':'" + itemId + "'}";
         var result = (RequestedItems)uploadServiceNow(itemUrl, typeof(RequestedItems), itemBody);
         return result.result[0];
     }
     catch
     {
         RequestedItem u = new RequestedItem();
         u.noResultData = true;
         return u;
     }
 }