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

Question

Question

Remove all security labels from a document

asked on December 15, 2020

good morning

I have a question and it is that I need to make a configuration through WorkFlow or SDK that eliminates all the security labels that a document has, I know that there is an activity called "ASSIGN TAGS" but there I have to choose which labels I remove 

Thank you.

0 0

Replies

replied on January 12, 2021

Here's a C# script that can be used in an SDK Script activity in Workflow.  It removes every Tags on the entry.

        protected override void Execute()
        {
            EntryInfo e = Entry.GetEntryInfo(BoundEntryId, RASession);
            EntryTagCollection t = e.GetAssignedTags();
            foreach (EntryTag et in t)
            {
                e.UnassignTag(et.TagId);
            }
        }

 

1 0
replied on January 12, 2021

This is similar - but only removes the Tags that are Security tags:

        protected override void Execute()
        {
            EntryInfo e = Entry.GetEntryInfo(BoundEntryId, RASession);
            EntryTagCollection t = e.GetAssignedTags();
            string theName = "";
            string theType = "";
            foreach (EntryTag et in t)
            {
                if (et.IsSecure)
                {
                    e.UnassignTag(et.TagId);
                }
            }
        }
1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.