You are viewing limited content. For full access, please sign in.

Question

Question

Retrieve Events for Entry's Cutoff Instruction?

asked on July 25, 2017

We are looking to create a destruction certificate for a given record using a Workflow SDK Script activity, and as such would like to include information about the cutoff instruction and retention schedule at the time of disposition (since they may change over time).

The area that I'm struggling with is creating a list of the events that the cutoff instruction is based on.  I am able to retrieve a list of the Event IDs using the line

int[] eventIds = this.BoundEntryInfo.GetParentFolder().GetRFProperties().GetCutoffCriterion().EventIds;

but am unable to find a method or function that will retrieve the event's name using the Event ID.

Is there a way to get the name of a cutoff event from the Event ID, or is there another method for retrieving this information?

Thank you.

0 0

Answer

SELECTED ANSWER
replied on July 25, 2017

Are you using the script just to find the information?  Or does the script also create the destruction certificate?

Can you use a Data Query to pull the information first and pass it to the script?  Find the entry you are working with and returned the Record Folder ID as a property.  Use the Record Folder ID to query the record_folder table matching where tocid equals the record folder ID that was returned.  Grab the coff_id field from that look up.  Use the coff_id to do a look up on the coff table where the coff_id returned in the previous query equals coff_id.  That will give you the ability to grab the coff_name as a token and pass it to the script or whatever activity you are using to create the certificate.

 

 

Tables.jpg
Tables.jpg (107.04 KB)
1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.