Method BenTekEmployee

Type: FusionOSServices.Controllers.BenTekController

Summary

This service returns the following information about employees: employee ID, status, First Name, Last Name, email address, department, calendar, hire date (hdt), birth date (bdt), address (st1, city, state, and country), full time employement (FTE), gender and position information. Position information consists of the annual salary, the start date (paybeg) and position control number (pcn). NOTE: In the Finance Enterprise system, an employee is able to hold more than one active position. This should be noted if the total annual salary across all positions is needed. Only active positions are returned.

Example

GET https://fusion.superion.com/FusionOSServices/v1/ONESolution/BenTek/Employees/E01010

Parameters

TypeDescription
System.String If an employee ID is provided only information for that employee will be returned.

Sample Code

using System.Net;
using Newtonsoft.Json.Linq;

public void MethodName(parms){

    string uri = "https://fusion.superion.com/FusionOSServices/v1/ONESolution/BenTek/Employees";
    

    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");

        while (uri != null)
        {
            string result = wc.DownloadString(uri);

            var response = JObject.Parse(result);

            var count = (string)response["RequestResponse"]["Count"];
            var employees = (JContainer)response["RequestResponse"]["DATA"]["EMPLOYEES"];

            foreach (var employee in employees)
            {
                // Your code goes here
                string fName = (string)employee["FNAME"];
                string lName = (string)employee["LNAME"];
            }
            // responses with more then 1000 employees are broken up into multiple requests
            uri = (string)response["RequestResponse"]["NextUri"];
        }
    }
}

Sample Responses


                        
            {
              "RequestResponse": {
                "Count": "1",
                "DATA": {
                  "EMPLOYEES": [
                    {
                      "BDT": "8/5/1992 12:00:00 AM",
                      "CALENDAR": "NORMAL",
                      "CITY": "CHICO",
                      "COUNTRY": "US",
                      "DEPARTMENT": "200",
                      "EMAIL": "stacey@donotreply.com",
                      "FNAME": "STACEY",
                      "FTE": "1.00000",
                      "GENDER": "F",
                      "HDT": "1/29/2013 12:00:00 AM",
                      "STATUS": "A",
                      "IDA": "00000803",
                      "LNAME": "PETERS",
                      "SSN": "111223343",
                      "ST1": "123 MAIN ST",
                      "STATE": "CA",
                      "ZIP": "98122",
                      "POSITIONINFO": [
                        {
                          "ACTLANN": "47988.00",
                          "PAYBEG": "1/29/2013 12:00:00 AM",
                          "PCN": "110110",
                          "LongDesc": "PRODUCT SUPPORT"
                        },
                        {
                          "ACTLANN": "15000.00",
                          "PAYBEG": "5/21/2013 12:00:00 AM",
                          "PCN": "140PGRA1",
                           "LongDesc": "PRODUCT SUPPORT SPECIALIST I"
                        }
                      ]
                    }
                  ]
                }
              }
            }