Saltar al contenido principal

Internal Message SQL to recipient who manages the account

Respondida

Comentarios

2 comentarios

  • Comentario oficial
    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]

     

Iniciar sesión para dejar un comentario.