I am trying to recreate a service connect workflow in a BPM that changes an operation and reschedules a job from a CSV file and I starting with the simple beginning to make sure I could get a changing tableset:
var srvJobEntry = Ice.Assemblies.ServiceRenderer.GetService<Erp.Contracts.JobEntrySvcContract>(this.Db);
Erp.Tablesets.JobEntryTableset JobEntryTS = new Erp.Tablesets.JobEntryTableset();
JobEntryTS = srvJobEntry.GetByID("011658");
JobEntryTS.JobOper[0].CommentText = "TEST";
JobEntryTS.JobOper[0].RowMod = "U";
srvJobEntry.Update(ref JobEntryTS);
I get the following error:
Is there something special I need to do with the JobEntry Tableset to update it? I can get at the data and present it in a message box but not update it.
I know this is an older post, but was curious if something like this would work for If the Job Date changed, then reschedule? I am not good at coding, so was curious before I go off and try this out in test. Any advice on something like this?