Ticket salutation template - insert customer firstname

Moderator: crythias

Post Reply
gob
Znuny newbie
Posts: 47
Joined: 18 Jan 2011, 15:45
Znuny Version: 3.0.4

Ticket salutation template - insert customer firstname

Post by gob »

Hi

Running Znuny 6.4.3

We are syncing our customer / agent backend to Azure AD.
In the standard Salutation when replying to a customer, we have been using:
Hi <OTRS_CUSTOMER_REALNAME>,
However this inserts the customer's full name and we find this a rather formal response and would rather it display "Hi Firstname,"

I have swapped this to the suggestion in the guide:
Hi <OTRS_CUSTOMER_DATA_UserFirstname>,
but this doesn't return the customer's first name and simply displays "Hi -,"

Any suggestions on a fix, or whether or not this is possible?
Customers do not have a login to the customer frontend in case that is relevant.

Thanks.
root
Administrator
Posts: 3956
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Ticket salutation template - insert customer firstname

Post by root »

Hi,
gob wrote: 07 Nov 2022, 21:44 I have swapped this to the suggestion in the guide:
Hi <OTRS_CUSTOMER_DATA_UserFirstname>,
but this doesn't return the customer's first name and simply displays "Hi -,"

Any suggestions on a fix, or whether or not this is possible?
Customers do not have a login to the customer frontend in case that is relevant.

If it's <OTRS_CUSTOMER_DATA_UserFirstname> depends on the mapping for the used CustomerUser configuration and if the customer is assigned to the tickert.
For the first check your Kernel/Config.pm, the mapping is mostly there. Search for something like this: https://github.com/znuny/Znuny/blob/dev ... s.pm#L1617

The first column of the table is the end of the placeholder <OTRS_CUSTOMER_DATA_XXX> Without a value the - is display or if no customer user is set. If a customer user is assigned (or detected based on your configuration) is know by seeing the customer infomation block on the right side of the ticket detail view.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
gob
Znuny newbie
Posts: 47
Joined: 18 Jan 2011, 15:45
Znuny Version: 3.0.4

[SOLVED] Re: Ticket salutation template - insert customer firstname

Post by gob »

thanks for your advise there Roy.
Turned out I had an error in my mappings. I had left it as UID instead of UserPrincipalName.

Cheers.
Post Reply