NOTE: This will be done using the Modify Your Metadata activity in version 1.10 and later.
This activity will remove a piece of metadata from a document changing it from being marked as an indexed document to not being indexed.
For instructions on deploying an activity, refer to our Deploying Custom Activities Article.
NOTE: Running the below powershell will add a custom activity into your process designer under the category Custom Activities.
Import-Module 'C:\Program Files\PaperStream\Core\Modules\Capture.Core'
$role = Get-Role -Name 'Activity Processing'
# Remove Indexed Flag
############################################
# Removes value from the CS5MarkAsIndexed field
if((Get-ActivityDefinition -Name "Remove Indexed Status") -eq $null) {
Add-ActivityDefinition -Name 'Remove Indexed Status' -Category "Custom Activities" -ActivityType Action -ActivityScope Default -Version 1 -Active 1 -RoleId $role.Id -ScriptBlock {
$Context.Batch | Get-Document | Set-DocumentMetadata -ClassKey 'General' -Key 'CS5MarkedAsIndexed' -Value False
}
}
Step by Step
- This activity only does one thing which is set CS5MarkedAsIndexed to null by using a False in the value parameter
This is a value we use often times to denote if a document was indexed in Capture prior to getting to CS Pro.
Comments
0 comments
Please sign in to leave a comment.