Closed dougwaldron closed 2 years ago
Received spreadsheet for WPB complaint IDs to close
Added stored procedure admin.CloseComplaintsTableType
to administratively close complaints. How to use the SP:
begin
declare @ComplaintsTVP as admin.CloseComplaintsTableType;
insert into @ComplaintsTVP
(Id, ReviewComment)
values
(999998, 'Administratively closed with this review comment.'),
(999999, 'Administratively closed with another review comment.');
select c.Id,
c.ComplaintClosed,
c.Deleted,
c.CreatedDate,
c.DateComplaintClosed,
c.ReviewById,
c.ReviewComments,
c.Status,
c.UpdatedById,
c.UpdatedDate
from Complaints c
inner join @ComplaintsTVP t
on c.Id = t.Id;
-- exec admin.CloseComplaints @ComplaintsTVP;
end;
Final set of complaints submitted and processed.
Requested by Jim C. Multiple lists are expected.