firing a field table trigger from a codeunit?

juanborras
juanborras Member Posts: 35
Hi!

it is possible? I'm coding a migration process with a codeunit and I need to fire a field trigger on the table Item, any ideas?

Thanks

Comments

  • sgg
    sgg Member Posts: 109
    juanborras wrote:
    Hi!

    it is possible? I'm coding a migration process with a codeunit and I need to fire a field trigger on the table Item, any ideas?

    Thanks

    if it is Field - OnValidate() that you want to fire, then simply Validating the value in the field will do the trick.

    ItemRec.VALIDATE(FieldName) if you just want to validate the existing field value or

    ItemRec.VALIDATE(FieldName,FieldValue) if you want to validate the field with a new value.

    Read the Help :D
    Sunday, Godwin G
  • juanborras
    juanborras Member Posts: 35
    Thanks a lot....