You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INNER JOIN Requests on RequestWorkflows.RequestID = Requests.ID
INNER JOIN Users on Requests.UserID = Users.ID
INNER JOIN RequestStatuses on RequestWorkflows.StatusID = RequestStatuses.ID
INNER JOIN States on States.StateAbbreviation = Requests.State
WHERE UrlKey=@UrlKey
If @statusId = '3' -- Declined
Begin
Update Requests set StatusID = 3, ClosedOn = GetDate() Where ID = @requestid;
-- create email, add to queue
Declare @templateData varchar(max) = (Select @coordinatorstate as coordinatorstate, @requestid as requestid, @requestFreq as requestFreq, @workflowNote as workflowNote, @requestStateName as state, @website as website for json path);