cancel
Showing results for 
Search instead for 
Did you mean: 

AddKeyword/ApplyChanges() not triggering AutoName change

Brett_Booz
Star Contributor
Star Contributor

I'm using the API to write a series of documents to OnBase using the Unity API. In some cases I have to go back an add keywords to the newly created documents because they were unknown at the beginning of the process. The keywords are getting added correctly, however the AutoName string on the Document does NOT get updated?

Here's the code I'm using to make the change:

using (DocumentLock docLock = PackageDoc.LockDocument())
{
    
if (docLock.Status == DocumentLockStatus.LockObtained)
    
{
        
KeywordModifier MemberNoKWModifier = PackageDoc.CreateKeywordModifier();
       
MemberNoKWModifier.AddKeyword(MemberNoKW);
        
MemberNoKWModifier.ApplyChanges();
     }

}

Is there something I need to do after the ApplyChanges() or an option I need to set before ApplyChanges() that would affect an update to the AutoName string?

Thanks!

Brett Booz
Systems Analyst
Spokane Teachers Credit Union (STCU)

5 REPLIES 5

Hello Brett,

I just tested this in my 17 system and by adding a new keyword via the Unity API the auto name did automatically update. Are you still seeing the issue?
Getting started

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.