Operation Details
Description: Counts the number of records with the specified attachment ID and record status.
Sterotype: ns
SQL
SELECT
  COUNT (*)
INTO
  :numberOfRecords
FROM
  AttachmentLink
WHERE AttachmentID = :attachmentID 
AND 
RecordStatus = :recordStatus