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

Question

Question

Assign various tags based on token data

asked on June 17, 2014

I have a client looking to apply 1 of 23 security tags based on department responsible for the document.

 

Is there a way to assign the appropriate tag using a single "Assign Tag" action and referencing the department name as a token in the desired tag name? (ie Assign %(DepartmentName)Tag so that FinanceTag is assigned when department field equals Finance)


Otherwise I will have a Conditional Decision with 23 branches and need to manually adjust as more departments come online.

 

0 0

Replies

replied on June 17, 2014 Show version history

Check out the SDK documentation under tags.

 

You should be able to handle the logic inside a script.

 

Here's a snippet from the documentation:

EntryInfo ei = Entry.GetEntryInfo("\\Doc1", mySess);
TagInfo ti = Tag.GetInfo("My Tag", mySess);
ei.AssignTag(ti, "This is a tag");
ei.Dispose();

Just replace pass Tag.GetInfo your department string instead of "My Tag" and it should work the way you want.

 

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

Sign in to reply to this post.