I'm working to understand a workflow that has a lot of scripts in it. What I'm looking for it the documentation so I can read exactly what function do. For example this code I read as
- Take the starting entry (document) and and get it's parent (containing folder)
- Get the parent of that folder (grandparent)?
- Look for a field called RootRecordName and if not found:
- Set folder to the parent folder (not sure why they don't just use parentfolder).
- Set parent folder to it's parent.
bool foundRootFolder = false;
FolderInfo folder = BoundEntryInfo.GetParentFolder();
FolderInfo parentfolder = folder.GetParentFolder();
while (!foundRootFolder)
{
string rootRecordName = string.Empty;
FieldValueCollection fvc = parentfolder.GetFieldValues();
if (fvc.ContainsField("RootRecordName") && fvc["RootRecordName"]!=null)
rootRecordName = fvc["RootRecordName"].ToString();
else
rootRecordName = string.Empty;
if (String.IsNullOrEmpty(rootRecordName))
{
foundRootFolder = true;
}
else
{
folder = Folder.GetFolderInfo(parentfolder.Id,RASession);
parentfolder = folder.GetParentFolder();
}
}
So I'm trying to find the docs to see if this script is just ignoring the containing folder.
The closest I got was https://laserfiche.github.io/lf-repository-api-client-dotnet/docs/1.x/class_laserfiche_1_1_repository_1_1_api_1_1_client_1_1_folder.html but this doesn't contain the functions I see them use