select formId from tbl_WRK_Forms with (nolock) where ownerId = and ownerType = and fieldCategory = and fieldDomain = 'CDA' insert into tbl_WRK_Forms ( ownerId, ownerType, formName, publishDate, unpublishDate, fieldCategory, fieldDomain ) values ( , , , , , , 'CDA' ) delete from tbl_WRK_FormRecipients where formId = and ownerId = and ownerType = select fspro_userId from tbl_fspro_members where ownerId = and fsl_tablecode = and email = and ( loginEnabled = 1 or staffMember = 1 ) insert into tbl_WRK_FormRecipients ( ownerId, ownerType, formId, recipientType, recipientUserId ) values ( , , , , )
DEBUG: #_recipientType#: #_recipientEmail# not found. Must be in staff directory or contacts directory (login enabled)