07-18-2019 01:28 PM
We upgraded our test environment v16 to v18. We have a system workflow action to run a unity script to retrieve a hidden keyword and do some processing.
string keywordTypeName= "SSN";
KeywordType keywordType = app.Core.KeywordTypes.Find(keywordTypeName);
if (keywordType == null)
{
app.Diagnostics.WriteIf(Diagnostics.DiagnosticsLevel.Warning,"Keyword Type '{0}' Not Found!",keywordTypeName);
}
else
{
if (args.Document.KeywordRecords.Find(keywordType) == null)
{
app.Diagnostics.WriteIf(Diagnostics.DiagnosticsLevel.Warning,"Keyword Type '{0}' Not Configured in Document Type {1}",keywordTypeName,args.Document.DocumentType.Name);
}
else
{
if (args.Document.KeywordRecords.Find(keywordType ).Keywords.FindAll(keywordType ) == null)
{
app.Diagnostics.WriteIf(Diagnostics.DiagnosticsLevel.Warning,"Keyword Values for '{0}' Not Found in Document [{0}]: [{1}] - {2}",keywordTypeName,args.Document.DocumentType.Name,args.Document.Name,args.Document.ID);
}
}
}
I am getting below message in dignostic console.
Keyword Type 'SSN' Not Configured in Document Type Employee File.
Does any unity script execution security changed in v18 workflow user context?
07-19-2019 05:00 AM
I've never used hidden keywords but after looking at the sdk for v18 this might be what you are looking for,
https://sdk.onbase.com/unitySDK/html/baf2aa10-47f7-c398-baa0-cb11512d393f.htm
DocumentType.HiddenKeywordTypes Property |
07-19-2019 05:00 AM
I've never used hidden keywords but after looking at the sdk for v18 this might be what you are looking for,
https://sdk.onbase.com/unitySDK/html/baf2aa10-47f7-c398-baa0-cb11512d393f.htm
DocumentType.HiddenKeywordTypes Property |
07-19-2019 01:02 PM
Thank you Scott!
I changed the script to use property and it worked without error.
Set hidden keyword to a property using workflow action and used the property in Unity Script.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.