Developer Programs

Learn

Docs

EASAdd

API Reference > EASAdd
SoapActionn/a
Input NameEASAdd
Output NameEASAddResponse
Input Namespacen/a
Group NameXperience
ContainerXP_MsgBus.xsd
EASAdd.cs
private void ButtonAuditAddClick(object sender, RoutedEventArgs e)
{
    this.lastAddedAccountId = new AccountId_CType()
    {
        AcctId = Guid.NewGuid().ToString(),
        AcctType = "Test"
    };

    var auditAdd = new EASAddRq_MType()
    {
        AppId = Application.ApplicationId,
        EASInfoArray = new[]
        {
            new EASInfoRec_CType()
            {
                AccountId = this.lastAddedAccountId,
                AuditEventActn = "Start",
                AuditEventRmk = "Whatever this is",
                AuditEventStat = "Success",
                AuditEventStatRmk = "Status Remark",
                CustId = "1",
                EventCode = "CustDetail",
                EASDtTime = DateTime.Now,
                EASIdxArray = new[]
                {
                    new EASIdxInfoRec_CType()
                    {
                        AuditKeyName = "testkey",
                        AuditKeyVal = "testkeyvalue"
                    }
                },
                EASItemArray = new[]
                {
                    new EASItemInfoRec_CType()
                    {
                        ItemName = "Bomber",
                        NewVal = "B1",
                        OldVal = "B52"
                    }
                }
            }
        },
        IMSSubj = this.CurrentUserIMSSubj,
        InstEnv = "Development",
        InstId = Application.ApplicationId,
        JESMsgRqHdr = Helper.JesMsgRqHeader()
    };

    var callback = this.messageBus
        .Send(auditAdd)
        .RegisterResponseHandler(this.OnAuditAddResponse);

    var errors = Helper.CallbackErrors(callback, "ButtonAuditAddClick");
    if (!string.IsNullOrWhiteSpace(errors))
    {
        this.UpdateListbox(errors);
    }
    else
    {
        this.UpdateListbox("Sent EASAdd message.", true);
    }
}

Did this page help you?

Last updated Mon Dec 9 2024