Method GetPEAssocDetail

Type: FusionOSServices.Controllers.PEAssocDetailController

Summary

REST service that provides an interface to read the PEAssocDetail table

Example

GET https://fusion.centralsquare.com/FusionOSServices/v2/ONESolution/PersonEntity/PEAssocDetail/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/PEAssocDetail/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"]["PEASSOCDETAIL"])
    {
       // TODO
    }
}

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

Sample Responses


                        
            {
              "RequestResponse": {
                "Count": "1",
                "DATA": {
                  "PEASSOCDETAIL": [
                    {
                      "peId": "104202",
                      "assocCd": "1042RECP",
                      "codeVal": "02",
                      "codeDesc": "aerthf",
                      "uniqueKey": "a5a70f0e-457f-11d9-825d-00306e2c5246",
                      "codeNum": "0.00000",
                      "codeDt": "",
                      "createWhen": "",
                      "createWho": "",
                      "updateWhen": "10/2/2020 8:10:35 PM",
                      "updateWho": "RESTAPI"
                    }
                  ]
                }
              }
            }
            
        

Remarks

The logical directory after /PEAssocDetail is the PE ID. If any corresponding records exist, those records will be returned in the PEAssocDetail array. If a single specific record is desired, the PE ID may be omitted from the URL path, and instead, the query string may be used to specify the uniqueKey of that record, which will be returned in the PEAssocDetail array. For example, ".../PEAssocDetail?uniqueKey=l3fhdsF" Errors are returned as JSON objects with messages in the #text attribute, e.g.: { "#text": "No ID found in path" }