Method GetPENameMaster

Type: FusionOSServices.Controllers.PENameMasterController

Summary

REST service that provides an interface to read the PENameMaster table

Example

GET https://fusion.centralsquare.com/FusionOSServices/v2/ONESolution/PersonEntity/PENameMaster/00000001

Parameters

TypeDescription
System.String the employee ID

Sample Code

using System.Net;

public void MethodName(parms){
    string uri = "https://fusion.centralsquare.com/FusionOSServices/v2/ONESolution/PersonEntity/PENameMaster/00000001";
    WebClient wc = new WebClient();
    Common.SetResponseType(wc, "json");
    Common.SetLicenseKey(wc);
    string stringResult = wc.DownloadString(new Uri(uri));
    
    JObject response = JObject.Parse(stringResult);
    foreach(var addressRec in response["RequestResponse"]["DATA"]["PENAMEMASTER"])
    {
       // TODO
    }
}

$.get('https://fusion.centralsquare.com/FusionOSServices/v2/ONESolution/PersonEntity/PENameMaster/00000001', function(response) {
    $('#resultDiv).html(response); 
 });

Sample Responses


                        
            {
              "RequestResponse": {
                "Count": "1",
                "DATA": {
                  "PENAMEMASTER": [
                    {
                      "peId": "00000",
                      "name": "Royal, Paul Cognos",
                      "nameU": "ROYAL, PAUL COGNOS",
                      "nameS": "Sr.",
                      "suffix": "",
                      "nickname": "avr",
                      "saluteCd": "",
                      "affilCd": "1042",
                      "selCd1": "1098T",
                      "selCd2": "",
                      "idStatus": "AC",
                      "url": "",
                      "uniqueKey": "1ddeb258-6089-11db-a45e-00306e2c5246",
                      "nameLast": "Royal",
                      "nameFirst": "Paul",
                      "nameMiddle": "Cognos",
                      "securityCd": "",
                      "entityExpireDt": "",
                      "createWhen": "11/7/2008 10:48:21 AM",
                      "createWho": "",
                      "updateWhen": "10/5/2020 6:33:00 PM",
                      "updateWho": "RESTAPI",
                      "ssn": "012345678",
                      "globalGuid": "",
                      "dba": "",
                      "dbaU": "",
                      "dbaS": "0000",
                      "dbaPayeeFlag": ""
                    }
                  ]
                }
              }
            }
            
        

Remarks

The logical directory after /PENameMaster is the PE ID. If a corresponding record exists, that record will be returned in the PENameMaster array of size 1 (see below). Errors are returned as JSON objects with messages in the #text attribute, e.g.: { "#text": "No ID found in path" }