How to retrieve Batch Priority (Script)

How can we get a field with a batch priority:

1 Create a new Field( Not Service Field);

2 Set The Filling type in the Recognition section of this Field to "Do not recognize";

3 Create a new Script Rule and make sure that the field doesn't have the Read-Only checkmark

4 Use the following script in C#:

Context.Field("Field").Text=Context.Document.Batch.Priority.ToString(); 

 

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.

Recently viewed