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

Question

Question

SDK/Workflow to initiate record cutoff

asked on March 16, 2015 Show version history

I'd like to implement retention scheduling but I don't really want to keep track of when documents are eligible for cutoff and then run the process manually. The cutoff process is necessary to start the retention schedule on a document, correct?

I've noticed that the SDK contains a cutoffeligibility property as well as a cutoff method. Could I script a solution to check the cutoff eligibility of my different records and run the cutoff process if they're eligible? Besides the need to trust my program to function properly, are there any downsides to this automation? I'd assume that so long as I set the retention schedule to an appropriate amount of time I wouldn't have any issues.

Can anyone offer any advice?

EDIT:

Okay, I've learned how the cutoff process works, and it would be feasible to script the process. In fact I might look into setting everything up as a Business Process. 

I just have one question now...how in the world do the RecordProperties properties work? I'm not used to properties within C# yet.

I get that I initialize a RecordProperties object...but then how do I tell the object where my actual record is? How do I get that specific record's properties?

 

 RecordProperties RecProps = new RecordProperties()
        {
            // At which record am I looking?
            // I haven't set anything related to a record
            // I am a confused person
            // I know I can set/get information here though
            // But none of the properties look like what I think I need
        };

 

0 0

Answer

SELECTED ANSWER
replied on March 19, 2015

You have to specify which record folder you want to get properties for:

FolderInfo fi = Folder.GetFolderInfo("\\11-31 MySeries\\MyFolder", RASession);
RecordFolderProperties RecProps = fi.GetRFProperties();

 

1 0

Replies

replied on March 20, 2015

That makes sense! Thank you! I don't know why I couldn't figure that out from the .NET Documentation. I tried the search but it didn't mention FolderInfo or DocumentInfo anywhere when I was looking at RecordProperties.

Thanks again!

0 0
replied on March 20, 2015

There's an example of cutting off record folders through RA in the section on record management in the SDK documentation.

1 0
replied on March 20, 2015

I knew there was sample code somewhere! I thought I was just going crazy. I was looking at just the .NET Documentation and there was no sample code there. I just opened the regular documentation and instantly found that again! 

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

Sign in to reply to this post.