The CreatorCon Call for Content is officially open! Get started here.

How to I fetch the details from the user table to make them visible on the profile page ?

Ketan Mittal
Tera Contributor

I am working on UI Builder Profile page to show specific details related to the logged in users profile to be visible. However, I am stuck at one point.

To fetch the email ID, I am using this : @data.look_up_user.result.email.displayValue.

However, that does not work. Need Help.

find_real_file.png

1 ACCEPTED SOLUTION

Marc Mouries
ServiceNow Employee
ServiceNow Employee

1. Add the "Look up Record" Data resource

  1. Go to Data Resources ( icon database on the left toolbar)
  2. Click +Add
  3. Search "look"
  4. Select "Look up Record"
  5. Click Add

2. Configure the data resource

  1. Set table to "User (sys_user)"
  2. Set Record to : (use Dynamic Data Binding) @context.session.user.sys_id
  3. Set Return fields to the fields you need

3. Populate the fields with the data resource

  1. Set the value of your email field with @data.look_up_record_1.result.email.displayValue

View solution in original post

2 REPLIES 2

JP - Kyndryl
Kilo Sage

Hi Ketan,

Logged as an Admin, go into the service portal on the profile page.

Do Ctrl + right mouse,  and select "Page in Designer" option (release the Ctrl before).

You can now modify this portal page.

 

Regards.

JP

 

Regards,
JP

Marc Mouries
ServiceNow Employee
ServiceNow Employee

1. Add the "Look up Record" Data resource

  1. Go to Data Resources ( icon database on the left toolbar)
  2. Click +Add
  3. Search "look"
  4. Select "Look up Record"
  5. Click Add

2. Configure the data resource

  1. Set table to "User (sys_user)"
  2. Set Record to : (use Dynamic Data Binding) @context.session.user.sys_id
  3. Set Return fields to the fields you need

3. Populate the fields with the data resource

  1. Set the value of your email field with @data.look_up_record_1.result.email.displayValue