示例#1
0
        /// <summary>
        /// Example of how to add a communication entry
        /// </summary>
        /// <param name="orgCode">Organization code</param>
        /// <param name="accountCode">This is the account code you need to attach the communication to.</param>
        /// <param name="Type">This is the type foreign key that is pulled from the CC801_COMM_TYPES table</param>
        /// <param name="Value">This is the actual communication entry value (e.g. the phone number or mobile number)</param>
        public CommunicationsModel Add(string orgCode, string accountCode, string Type, string Value)
        {
            //Note that sequence number isn't set for POST operations.  Ungerboeck will assign the sequence number automatically
            var myProductService = new CommunicationsModel
            {
                OrganizationCode = orgCode,
                AccountCode      = accountCode,
                Type             = Type,
                Value            = Value,
                Private          = UngerboeckSDKPackage.USISDKConstants.CommunicationSensitivity.Public //You can set the sensitivity
            };

            return(APIUtil.AddCommunication(USISDKClient, myProductService));
        }