Add a post-processing method on GetList, you can access the result rows there.
Iām so spoiled by āSchedule Epicor Functionsā in the later versions than you that I canāt remember. Let me see if I can find an answer. I think maybe you could schedule a BAQ report? Dunno lol.
I very much appreciate your reply and the time taken to test and lay it all out. I did consider yesterday using a BAQ Report but then quickly ditched the idea, probably too quickly.
I also though about making my BAQ updatable yesterday but seeing as the data wasnt getting āupdatedā, i figured it might be be what i needed but it makes sense looking at it again.
I made my BAQ updateable and created a post process on the GetList and am now able to run code. I dont think i need to do the BAQ Report, i can run a BAQ export on the BAQ and schedule that. I have this on some other BAQs but they actually need to update the BAQ.
There is a little update in the code but its nothing major and iāll report back on my final results.
Thanks again for all of your help and steering me in the right direction
I was going to say
āYou can just use a Dynamic Report instead of a BAQ report. (i.e. create a RDD and add a BAQ to it, then create a new report style).ā but reread. You are sending to an external API.
In your circumstance I would be going with the UBAQ and sending to the REST API directly from there and use the Export BAQ Process. That way you would have a copy of what was sent to the REST API. I would go as far log it to a UD table.
Set up the Post Procerss GetList code in the BAQ, got it all working and i can post to UKG. I experienced some annoying Epicor issues, the main one being-
If i made an update to my custom library then uploaded that to the custom library folder, Epicor could see it, see the version of it but still persisted to remember the previous version. I have removed the reference & assembly, re-added them but still the same. I haver changed an args() parameter from DataTable to String. The Syntax was correct but it wouldnt let me save. In the end i updated my custom Library to a new name, new namespace and new class name then it worked so somewhere it remembered the old stuffā¦
Anyway, its all working now so thanks for all of your help