コード例 #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);
     }
 }
コード例 #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;
     }
 }