Run trigger from SQL Server.

JTProJTPro Member Posts: 169
Hello all,

First at all, let me wish you happy NEW YEAR. \:D/
I would like to know if it is possible to run from SQL Server trigger onValidate on the field of table? What I want is to put some date into field of table, and run onValidate trigger for it.
Im looking forward for answers from You.

Best regards
jtpro
Navision Application Version: 4.0SP1
Navision Database Version: 4.0

Comments

  • ShenpenShenpen Member Posts: 386
    I think it's impossible, although you could use NAS to check data in a table frequently and run OnValidate or anything else if needed. The safest choice is to create a new table in Navision, insert data there from SQL, and use NAS to check and copy data into the "real" tables.

    Do It Yourself is they key. Standard code might work - your code surely works.
  • kinekine Member Posts: 12,562
    Shenpen is right. There is no way how to run C/AL code from external app. C/AL code can be runned only in Navision client or NAS.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ara3nara3n Member Posts: 9,257
    Navision 5.0 suppose to allow bussiness logic to run from outside.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.