Service Portal is showing undefined instead of user's first name

Devika3
Tera Guru

Hi All,

When a non admin user is logged into the service portal, it is showing 'Hi Undefined' . Actually it has to show 'Hi (user's first name)'. There is no change in html code and client side code in widget. We have recently installed HRSD plugin. Please let us know if anyone experienced this issue before.

Regards,

Devika.

1 ACCEPTED SOLUTION

Devika3
Tera Guru

The issue happened due to some ACL that got installed with HRSD.

View solution in original post

9 REPLIES 9

RaghavSh
Kilo Patron

Which widget are you referring to? Is it some OOB widget or custom widget?

Also can you check if that particular user has first_name populated in user profile?


Raghav
MVP 2023

Hi Raghav,

We are using a custom widget with the following client controller script:

function() {
/* widget controller */
var c = this;
c.data.greeting = 'Hi ' + scope.user.first_name + ', Welcome to the Bristow ServiceDesk';
}

 

And the first name is populated in user table and is coming for admin users.

Regsrds,

Devika.

Can you also paste the HTML part and server code as well.

If there is no server code there is no need to use c.data.greeting , use c. greeting and directly call it in HTML like {{c.greeting}}


Raghav
MVP 2023

The same code we are using in our production instance. And also if it is the issue with the code, the problem will occur for the admin users also, the issue is only to the non admin users.