asked on October 6, 2016
Hi All,
In workflow I have written a script using the sdk to retrieve the text of all stamps on a document.
When I try I am only able to see the text in the first stamp what am i doing wrong?
dim Rejected as boolean = False
dim Approved as Boolean = False
dim returnValue as String = ""
dim Doc as DocumentInfo = Document.GetDocumentInfo(boundentryid,rasession)
dim Ann as List (of AnnotationBase) = doc.GetAnnotations()
for each anno as AnnotationBase in Ann
if anno.annotationtype = AnnotationType.Stamp Then
if anno.customdata.toupper.contains("APPROVED BY") Then
Approved = true
elseif anno.customdata.toupper.contains("REJECTED BY") Then
Rejected = true
end If
end If
Next
if rejected = false and approved = false Then
returnValue = "No Stamp"
end If
if rejected = false and approved = true Then
returnValue = "Approved"
end If
if rejected = true and approved = false Then
returnValue = "Rejected"
end If
if rejected = true and approved = true Then
returnValue = "Error"
end if
me.SetTokenValue("Result",returnValue)
0
0