I need to count how many line-items a invoice have.
That way I can treat that document as Exception, in case line-intems counter = 0.
Thanks.
I need to count how many line-items a invoice have.
That way I can treat that document as Exception, in case line-intems counter = 0.
Thanks.
0 out of 0 found this helpful
Comments
1 comment
Hi javsuc,
Please try the following script:
if(Document.HasField("Invoice Layout\\LineItems"))
int count = Document.Field("Invoice Layout\\LineItems").Items.Count;
Please sign in to leave a comment.