Wiki

Scale Your Enterprise

User Tools

Site Tools


bizweaver:exec_sql

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
bizweaver:exec_sql [2024/09/09 14:30]
dlee [Create Control Procedure]
bizweaver:exec_sql [2024/09/09 14:35] (current)
dlee [Create Control Procedure]
Line 68: Line 68:
   * @wsTaskId: workflow id   * @wsTaskId: workflow id
   * @wsStartAfter: 0   * @wsStartAfter: 0
-  * @wsParameters: arguments must be passed using label:value pairs enclosed in double quotes+  * @wsParameters: arguments must be passed using label:value pairs enclosed in double quotes and brackets
     * Example: the variable name in the Bizweaver workflow is vgo_BatchID (case sensitive)     * Example: the variable name in the Bizweaver workflow is vgo_BatchID (case sensitive)
     <code sql>     <code sql>
Line 79: Line 79:
 <code sql> <code sql>
  
-set @Arguments = '{"YourTargetVariable":' + '"' + @list_of_cols_val_tab_del + '"' + '}'+DECLARE @Arguments NVARCHAR(MAX) 
 +SET @Arguments = '{"YourTargetVariable":' + '"' + @list_of_cols_val_tab_del + '"' + '}' 
 EXECUTE [dbo].[spCallBizweaverWS] EXECUTE [dbo].[spCallBizweaverWS]
-@wsMethod='POST' +    @wsMethod='POST' 
- +    ,@wsURL='https://YourURL' 
--- add your URL.  Be sure to use http or https as appropriate. +    ,@wsPort='443' 
- +    ,@wsContent='application/json' 
-,@wsURL='https://YourURL' +    ,@wsAuthToken='xyxyxyxyxyxyxyxyx' 
- +    ,@wsTaskId='999' 
-,@wsContent='application/json' +    ,@wsStartAfter='0
- +    ,@wsParameters= @Arguments
--- Add your Auth Token from Bizweaver +
- +
-,@wsAuthToken='xyxyxyxyxyxyxyxyx' +
- +
--- Add your workflow ID from Bizweaver +
- +
-,@wsTaskId='999' +
-  ,@wsStartAfter='' +
- +
-,@wsParameters= @Arguments+
  
--- Add your port number 
-  ,@wsPort='443' 
 END END
 </code> </code>
bizweaver/exec_sql.1725906621.txt.gz · Last modified: 2024/09/09 14:30 by dlee