Customer Portal

How to do condition when inserting records in Database

Comments 3

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello,
    it can be done with DBJoin component:
    graphDBJoin.png
  • Avatar
    naveenvijay
    0
    Comment actions Permalink
    Hi Agata,

    Thanks for the quick response. Just one question around DBJoin and the last steps you have show in the graph. Is it basically joining the record and if the record does not exist then is it inserting the records or how does it work.

    Thanks and appreciate all your help.

    Naveen
  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello Naveen,
    as described in Documentation: The joined data is then sent to the first output port. The second output port can optionally be used to capture unmatched master records. That means that the 2nd DBOutputTable ("New data") inserts new records to the database table. DBJoIn just finds existing and non-existing records and sends them downstream. More over you can transform records obtained from database.

Please sign in to leave a comment.