How to check if the document was verified or not?

Question

How to export the value of isVerified flag and check if the document was verified or not?

Answer

Add the following script to the After document state changed event handler:

if(Document.IsVerified == true) 
{
Document.Field("Invoice Layout\\Field").Text = "Verified";
}

Where Invoice Layout\\Field is the link to the required field in which the value should appear.

So, if the document was verified, the field will contain the value Verified.

2022-08-22_12_29_45.png

 

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.