Wrote some time ago to created a folder in a record series and set a file date. I would like to add to this a field and field value to the folder, not a template. I can't seem to figure this out and any help would be appreciated.
public class Script1 : RAScriptClass92
{
/// <summary>
/// This method is run when the activity is performed.
/// </summary>
protected override void Execute()
{
string FD = WorkflowApi.GetTokenValueFromNameAsString("FileDate",1);
string FL = WorkflowApi.GetTokenValueFromNameAsString("RecFolder",1);
int id = Folder.Create(FL,"Default",0,RASession);
FolderInfo FI = Folder.GetFolderInfo(id,RASession);
RecordFolderProperties RFprop = FI.GetRFProperties();
RFprop.FilingDate = Convert.ToDateTime(FD);
RFprop.Save();
}
}