REST POST Multiple Records?

I would like to update a Job with multiple operations via REST with one POST call. Is that possible, if so what is would the JSON Body look like?

Passing the below body into Erp.BO.JobEntrySvc/JobOpers throws an error.

    {
        "Company": "HF",
        "JobNum": "48527-1.1",
        "PartNum": "48527-1.1",
        "AssemblySeq": 65,
        "OprSeq": 30,
        "OpCode": "100",
        "StartDate": "2020-04-03",
        "DueDate": "2020-04-03"
    },
    {
        "Company": "HF",
        "JobNum": "48527-1.1",
        "PartNum": "48527-1.1",
        "AssemblySeq": 65,
        "OprSeq": 40,
        "OpCode": "100",
        "StartDate": "2020-04-03",
        "DueDate": "2020-04-03"
    }

As far as I know you can’t do multiple dirty in any version of Epicor at this time. You have to send them one by one as a loop from your sending program.

1 Like

That’s what I feared. Ouch.

It’s really not too terrible if you really wanted to and you are using a language that can support it fire off the requests async and let them happen concurrently :rofl:

If NewtonSoft is available on the server (which it is for Cloud users), do you think one could take the JSON string, pass it to an EFx, fill a DataTable and then run the update - all in one POST?

1 Like

Have you run a trace in DMT to see how it updates many rows at once? I would offer that JobEntry.UpdateExt should be able to do this.

You can do it now with a UBAQ.