UFN_BATCHWORKFLOW_GETID
Returns a workflow ID given a workflow name.
Return
| Return Type |
|---|
| uniqueidentifier |
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @WORKFLOWNAME | nvarchar(100) | IN |
Definition
Copy
CREATE function [dbo].[UFN_BATCHWORKFLOW_GETID]
(@WORKFLOWNAME nvarchar(100)) returns uniqueidentifier
as
begin
declare @ID uniqueidentifier;
select @ID=ID from dbo.BATCHWORKFLOW where [NAME] = @WORKFLOWNAME;
return @ID;
end