Hey Everyone:
I'm having a hard time articulating this to Dr. Google, and I keep getting all kinds of SQL answers. I don't need SQL answers, I need to understand from a Business Central / AL perspective how to do this.
The Problem
My client just migrated from Dynamics GP and wants to have a web service that provides a continuous stream of customer invoice transactions. In SQL, no problem. I can even see in Business Central that I can arrange the information into two separate web services - one for the current information and one for the historical table "GP RM20101" in the Intelligent module. What I can't do is provide a single web service that puts them into one JSON object.
What I've Tried
I've got two queries that each produce the correct information each of the tables. They have the same structure, the same naming conventions, etc. I've tried finding information on how to do this on Google, and in my reference books, but ... I can't see how to do it. A codeunit that puts them into a temporary table? The problem is I don't know how to publish the result of a temporary table to a web service. (Or an API, even, I know they're slightly different but I can do either one.)
Does anyone have any advice, or an example of something similar or anything that they can point me to? I'd really appreciate any help.
Thanks.
-J