How do I populate the parameters in a bank adjustment post?

Hello, I am hoping someone can give me the next step or some advice in what I’m trying to do. I’d like to post a bank adjustment using the kinetic Rest Api. Here is what I’ve done so far.

With trace on, I posted a groupID from bank adjustments, and kept track of what processes and business objects were used.

Trace showed me it is using “SubmitToAgent” to accomplish the actual posting, with four parameters. When I fill the four parameters with what’s in trace (this time using an unposted Group ID) and use this process in the Rest API, I get an error.

{
  "ds": {
    "BankAdjPostParam": [
      {
        "ACTType": "string",
        "GroupID": "string",
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "AutoAction": "string",
        "PrinterName": "string",
        "AgentSchedNum": 0,
        "AgentID": "string",
        "AgentTaskNum": 0,
        "RecurringTask": true,
        "RptPageSettings": "string",
        "RptPrinterSettings": "string",
        "RptVersion": "string",
        "ReportStyleNum": 0,
        "WorkstationID": "string",
        "TaskNote": "string",
        "ArchiveCode": 0,
        "DateFormat": "string",
        "NumericFormat": "string",
        "AgentCompareString": "string",
        "ProcessID": "string",
        "ProcessCompany": "string",
        "ProcessSystemCode": "string",
        "ProcessTaskNum": 0,
        "DecimalsGeneral": 0,
        "DecimalsCost": 0,
        "DecimalsPrice": 0,
        "GlbDecimalsGeneral": 0,
        "GlbDecimalsCost": 0,
        "GlbDecimalsPrice": 0,
        "FaxSubject": "string",
        "FaxTo": "string",
        "FaxNumber": "string",
        "EMailTo": "string",
        "EMailCC": "string",
        "EMailBCC": "string",
        "EMailBody": "string",
        "AttachmentType": "string",
        "ReportCurrencyCode": "string",
        "ReportCultureCode": "string",
        "SSRSRenderFormat": "string",
        "UIXml": "string",
        "PrintReportParameters": true,
        "SSRSEnableRouting": true,
        "DesignMode": true,
        "RowMod": "string"
      }
    ],
    "ExtensionTables": [
      {

Here are all the parameters. I filled in what I could based on the parameters in Trace, but there are still a lot of parameters that are blank.

How do I find how to populate these in order to get a successful posting?

Personally, I prefer to use an Epicor Function that does the actual work and then call the EFx via REST. It doesn’t leak details to the client and upgrades would not likely affect your client code.

You didn’t post the error message, unless it was just a correlation ID. You can check the app server log to get the real error. Are you passing in

"string" 
or
""

for missing or no values? :thinking:

1 Like

Bare minimum

{
    "ds": {
        "BankAdjPostParam": [
            {
                "ACTType": "Bank Adjustment",
                "GroupID": "ddd",
                "SysRowID": "00000000-0000-0000-0000-000000000000",
                "AgentID": "SystemTaskAgent",
                "RowMod": "A"
            }
        ],
        "ExtensionTables": []
    },
    "agentID": "SystemTaskAgent",
    "agentSchedNum": 0,
    "agentTaskNum": 0,
    "maintProgram": "Erp.UIProc.BankAdjPost"
}

what she said yes GIF by TipsyElves.com

1 Like

Thank you, I’m getting:

“ErrorMessage”: “Invalid Agent ID.”,

Previously I was getting a 200, empty response, and while it seemed successful, nothing was actually posting or changing.

Is your agent called “SystemTaskAgent”?

1 Like

Yes it is

1 Like

Just got a splitting headache. Can’t concentrate. Hopefully someone else can help.