This guide shows you how to provide the resultset of a SQL to the user as Excel export by running a process.
Was developed by this issue: https://github.com/metasfresh/metasfresh/issues/4633
select @C_Order_ID/-1@ as C_Order_ID , @AD_User_ID/-1@ as AD_User_ID , @C_BP_Group_ID/-1@ as C_BP_Group_ID , bp.* from C_BPartner bp
The context variables used in SQL will be resolved in following order: