It’s possible, but not necessarily easy or straightforward.
You’ll have to trace and see where the data comes from.
If you need to reference other data against it, you’ll have to either do that
with LINQ, or pull the data down to a UD table with a GetList override in a BAQ,
and then you can link against it.
Here is an example of the temp table idea:
https://www.epiusers.help/t/tutorial-using-a-ud-table-as-a-temp-table-for-external-or-generated-data-to-link-with-sql/98902
Might want to integrate some of the suggestions/enhancements later on in the thread if you go that route.