Community

Access Registration (Batch ) parameters in Rule script using C# Answered

Hi,

I wanted to assign certain value to the field depending on the Batch Registration parameter, I am using script for that.

How i can access batch registration parameter in Text fields - Script rule?

Kindly help to resolve the issue.

Regards,

Monika

0

Comments

5 comments

  • Avatar
    Vladimir Dimitrijević

    Hi Monika,

    Please try this: 
    string batchParameter = Context.Document.Batch.Properties.Get("YourBatchRegistrationParameter");

    Best regards,
    Vladimir

    0
  • Avatar
    Monika Gajanan Kate

    Thanks Vladimir, it helped!

    0
  • Avatar
    Adrian Enders

    I am going to add a quick note to this so you are aware. You can READ registration parameters from a rule, but you cannot CREATE or EDIT them from a rule.

    0
  • Avatar
    Sara

     I have created Batch Reg Parameter using service field but it is blank. How to set some value and access it?

    Thanks

    0
  • Avatar
    Monika Gajanan Kate

    Hi Sara,

    http://help.abbyy.com/en-us/flexicapture/12/scanning_station/reg_params link will help you to create and set Batch reg Parameters.

    Regards,

    Monika

     

    0

Please sign in to leave a comment.