I us a SQLEXEcutor in a workflow. The SQL statement - with an alias - is something like:
SELECT
string_agg("History"."History_name", ';') AS lstHistory
FROM
public."Pois_lines",
public."Pois_lines_history",
public."History"
WHERE
"Pois_lines"."Pois_lines_id" = "Pois_lines_history"."Pois_id" AND
"Pois_lines_history"."History_id" = "History"."History_id" AND
"Pois_lines"."Pois_lines_id" = @Value("Pois_lines_id")
In the last line I use a value of an attribute in the workflow.
I want to pickup the value of the returned dataset and put it in an attribute. For that purpose I defined an alias, which name I define as an exposed attribute in the SQLExecutor. However the attribute remains empty .... The SQL statement is valid so it should return results.
Am I overlooking something or doing something wrong?
Kind regards,
Pim Verver