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

  • 51 Views
  • Last Post 5 weeks ago
  • Topic Is Solved
Monika Gajanan Kate posted this 03 June 2019

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

Order By: Standard | Newest | Votes
Vladimir Dimitrijevic posted this 05 June 2019

Hi Monika,

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

Best regards,
Vladimir

Monika Gajanan Kate posted this 5 weeks ago

Thanks Vladimir, it helped!

Close