This service returns employee ID records for accounting travel authorization for OnBase: Name, Dept, LongDesc, GlKey, PhoneCd, PhoneCd2, PhoneNo, PhoneNo2.
| Type | Description |
|---|---|
| System.String | The employee ID to retrieve accounting travel authorization records for. |
using System.Net;
using Newtonsoft.Json.Linq;
public void MethodName(parms){
string primaryKeyword = "D1000"; // Replace with actual employee ID
string uri = "https://fusion.superion.com/FusionOSServices/v0/ONESolution/OnBase/IDforAcctTravelAuth?primaryKeyword=" + primaryKeyword;
using (WebClient wc = new WebClient())
{
wc.Headers.Add("Content-Type", "application/json");
// Replace "ID" with supplied AppID
wc.Headers.Set("X-APPID", "ID");
// Replace "KEY" with supplied AppKey
wc.Headers.Set("X-APPKEY", "KEY");
string result = wc.DownloadString(uri);
var response = JObject.Parse(result);
var records = (JContainer)response["values"];
foreach (var record in records)
{
string name = (string)record["name"];
string dept = (string)record["dept"];
}
}
}
{
"values": [
{
"name": "CALDWELL, CHARLES GEORGE",
"dept": "100",
"longDesc": "ACCOUNTING TECHNICIAN",
"glKey": "100200",
"phoneCd": "1",
"phoneCd2": "1",
"phoneNo": "5551234567",
"phoneNo2": ""
}
],
"count": 1
}