Announcement

Collapse
No announcement yet.

Notify on Order Create

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Notify on Order Create

    I can see that by using Transactional Events I setup a contact to be notified when ever an order release gets created. Is there anyway to set it up so the contact is notified only when orders are created by certain users or roles?

  • #2
    Re: Notify on Order Create

    Hi,

    You could define a custom agent which listens to the event - ORDER - CREATED and in the actions part specify a saved condition [has to check the specific role/ user] and include the contact.

    Regards,
    Chirthal

    Comment


    • #3
      Re: Notify on Order Create

      Hi Chirthal

      How to find the user or role in above case? Can you give the query/condition.

      Sam

      Comment


      • #4
        Re: Notify on Order Create

        if
        saved query
        notify
        endif

        saved query would be something like insert_user = 'person' where order_release_gid = $GID

        Comment


        • #5
          Re: Notify on Order Create

          Hi,

          Write an agent to listen on ORDER - CREATED as Chirthal said. In your actions,

          1) Check the condition using IF action (query: select 1 from GL_USER glu, order_release ord where order_release_gid = $gid and ord.insert_user = glu.gl_user_gid and DEFAULT_USER_ROLE_GID = '<<your desired role gid>>')

          2) Within the IF condition use the NOTIFY CONTACT (if you want to notify fixed contact / contract group) or NOTIFY INVOLVED PARTIES (if you want to notify order release involved parties).

          Thanks,
          Lakshmi Padileti
          Srujan Technologies, Inc.
          [email protected]

          Comment

          Working...
          X