Method PostPEEmailDetail

Type: FusionOSServices.Controllers.PEEmailDetailController

Summary

REST service that provides an interface to insert into the PEEmailDetail table

Example

POST https://fusion.centralsquare.com/FusionOSServices/v2/ONESolution/PersonEntity/PEEmailDetail

Sample Code

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

public void MethodName(parms){
    string uri = "https://fusion.superion.com/FusionOSServices/v2/ONESolution/PersonEntity/PEEmailDetail";
    string data = 
    @"[{
          ""peId"": ""00000001"",
          ""emailTypeCd"": ""01"",
          ""addrCd"": ""01"",
          ""emailAddr"": ""nayana1@sungard.com"",
          ""createWho"": ""NAYANA.THI~2"",
          ""createWhen"": ""4/15/2012 10:28:49 PM"",
          ""updateWho"": ""NAYANA.THI~2"",
          ""updateWhen"": ""4/15/2012 10:28:49 PM"",
          ""uniqueKey"": ""AD73344B-65DA-4FD8-815D-6DE512CAAC40""
    }]";

    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.UploadString(uri, "POST", data);

        JObject response;
        if (!string.IsNullOrWhiteSpace(result))
             response = JObject.Parse(result);
    }
}

Remarks

The JSON body can be copied from a GET and altered as needed.