Home > Forum > Processes > STARTING SQL SUBWORKFLOW USING ITEM LIST FOR DIFFERENT COMPANY'S

STARTING SQL SUBWORKFLOW USING ITEM LIST FOR DIFFERENT COMPANY'S
0

How can I in here write dinamic company from my item list (My company is in DET_att5) ? Or I have to do another way ?

In reply to: Karol Częczek

Hi, Mateusz.
You choose any, and in the sql query add:
, DET_att5 as COM_ID

I do this:

SELECT DET_ID as WFD_AttText19,

DET_Att4 as COM_ID /* here also this DBO.ClearWFElemID(DET_Att4) as COM_ID but also error that said that that functions is not avaible

FROM WFElementDetails

WHERE DET_WFDID=1515422 AND DET_WFCONID=2398 AND DET_Att3=1


but I have an error

Wystąpił błąd wykonania akcji Uruchom podobieg (SQL) na ścieżce. (Krok: Ręczna weryfikacja załączników, ścieżka: Wiele faktur)
Błąd konfiguracji: Nieprawidłowy format kolumny COM_ID

In reply to: Maksymilian Stachowiak

Within your select, you can rename DET_Att5 to COM_ID, as written in context help (see screenshot).

It should override whatever you have typed in Default configuration tab.

@Edit
Seems like Karol was faster, and i havent refreshed my browser :)

I do this:

SELECT DET_ID as WFD_AttText19,

DET_Att4 as COM_ID /* here also this DBO.ClearWFElemID(DET_Att4) as COM_ID but also error that said that that functions is not avaible

FROM WFElementDetails

WHERE DET_WFDID=1515422 AND DET_WFCONID=2398 AND DET_Att3=1


but I have an error

Wystąpił błąd wykonania akcji Uruchom podobieg (SQL) na ścieżce. (Krok: Ręczna weryfikacja załączników, ścieżka: Wiele faktur)
Błąd konfiguracji: Nieprawidłowy format kolumny COM_ID