Database Connection for SmartConnect Task
I have a data source containing records for multiple destination companies in GP. The SmartConnect Map Destination Definition window is configured to identify which company to send the records into based on one of the fields contained in the data source. This works perfectly.
I have the need to run a task after each document succeeds. The task is a Run SQL Command task which needs to run against the specific database applicable to the record that succeeded.
Is this possible? If so, what is the syntax of the SQL update query.
I have the need to run a task after each document succeeds. The task is a Run SQL Command task which needs to run against the specific database applicable to the record that succeeded.
Is this possible? If so, what is the syntax of the SQL update query.
Final Notes:
Great work Darren – really appreciate you sharing the answer with everyone.
How did you get the field value into the GlobalFileName?
Janeece,
He would have used a calculation at some point, or a Restriction script, or “before or after” document script.
GlobalFileName = _COMPANYID (the source field)
then when he ran the SQL, the value would be populated.