Method GetIDNameDeptPosGLKey

Type: FusionOSServices.Controllers.OnBaseController

Summary

This service returns employee ID, name, department, position, and GL key records for OnBase: Name, Dept, LongDesc, GlKey.

Example

GET https://fusion.superion.com/FusionOSServices/v0/ONESolution/OnBase/IDNameDeptPosGLKey?primaryKeyword=D1000

Parameters

TypeDescription
System.String The employee ID to retrieve name, department, position, and GL key for.

Sample Code

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/IDNameDeptPosGLKey?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"];
        }
    }
}

Sample Responses


                        
            {
              "values": [
                {
                  "name": "CALDWELL, CHARLES GEORGE",
                  "dept": "100",
                  "longDesc": "ACCOUNTING TECHNICIAN",
                  "glKey": "100200"
                }
              ],
              "count": 1
            }