コミュニティ

Set field value using batch Event Handler 回答済み

Hey guys,

I have scenario on FlexiCapture 12 where I need to add value in specific field according on batch type after document is added to that batch.

So for example I have batch type 'BatchType1', so if document gets to this batch (using import from email) I need automatically add value to Field1 for example "DocumentFromBatchType1".

Any one have ideas how to implement such scenario?
My thought was use batch Event Handler, but it didn't work for me, maybe any ideas if it's possible to use Event handler for this scenario?

Thanks a lot!!!

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

3件のコメント

  • Avatar
    Permanently deleted user

    Appreciate any help

    0
  • Avatar
    Permanently deleted user

    Hello,

    Please use the property IDocument::Batch.BatchTypeName (string) to fill the required field IDocuement::Field( name : string ).Text (string) either on custom script stage, or in event handler like "after document state changed".

    1
  • Avatar
    Permanently deleted user

    My bad was that using Event handler I tried to call staright to field name, without full name.
    For example I tried:
    me.Field("Field1").Value = "DocumentFromBatchType1", while the correct expression should be:
    me.Field("Invoice Layout\Field1").Value = "DocumentFromBatchType1". Stupid fault...

     

    Thank you Ekaterina!

    0

サインインしてコメントを残してください。