Skip to main content

Internal Message SQL to recipient who manages the account

Answered

Comments

2 comments

  • Official comment
    Yaremi Miranda Lopez

    Hello Dean,

    As Nadav mentioned, you can use SQL to set the user that will receive the message. If you open the help, you will find an example.

     

  • Nadav Caridi

    Hi , 

    example in the help file isn't working for you ? (invoice) 

    You can use the SQL: syntax
    Example: 'SQL:SELECT USER_CODE FROM OUSR WHERE INTERNAL_K = $[OINV.UserSign]' will on an invoice send an internal message to the person who created the Invoice (UserSign)
    Tip: You can let your SQL sentence return multiple rows of usernames and then send to each of them

    if you need the email from the sales employee you can just query OSLP : 

    SQL:SELECT TOP 1 o.Email FROM OSLP o WHERE o.SlpCode=$[ORDR.SlpCode]

     

Please sign in to leave a comment.