Profile Inquiry
Type | Description |
---|---|
System.Net.Http.Formatting.FormDataCollection | x-www-form-urlencoded POST with the following: action=value&termYear=value |
POST http://localhost/FusionServices/v3/Naviline/Payroll/ProfileInquiry
using System.Net;
using Newtonsoft.Json.Linq;
public void MethodName(parms)
{
string uri = "http://localhost/FusionServices/v3/Naviline/Payroll/ProfileInquiry";
System.Collections.Specialized.NameValueCollection postParms =
new System.Collections.Specialized.NameValueCollection();
// Set paramater values
postParms.Add("action",System.Web.HttpUtility.UrlEncode("I"));
postParms.Add("termYear",System.Web.HttpUtility.UrlEncode(""));
WebClient req = new WebClient();
wc.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
wc.Headers.Set("X-APPID", "YOURID");
wc.Headers.Set("X-APPKEY", "YOURKEY");
byte[] responseBytes = wc.UploadValues(new Uri(uri), "POST", postParms);
string stringResult = Encoding.UTF8.GetString(responseBytes);
JObject response = JObject.Parse(stringResult);
string error = response["OutputParms"]["ErrorCode"].ToString();
if (error == "0000")
{
JArray jRows = (JArray)response["Rows"];
foreach (JObject row in jRows)
{
string EmployeeUniqueIdentifier = row["EmployeeUniqueIdentifier"].ToString();
string CodeType = row["CodeType"].ToString();
string Code = row["Code"].ToString();
string Amount = row["Amount"].ToString();
string Percentage = row["Percentage"].ToString();
string CategoryCode = row["CategoryCode"].ToString();
string Type = row["Type"].ToString();
// TODO - YOUR CODE HERE
}
}
}