Database View Assistance - Report on Record Producer variables

Carl Fransen1
Tera Guru

Hi Team,

We have a bunch of HR Services created a Record Producers in out hrportal.  These capture variables when submitted in the portal and I can see these on the HR Cases - these variables are a combination of string fields and 'reference' which link back to the user table - not all the variables are mapped back to an HR table field - some are just variables.

I need to report on the variables in a Record Producer - my understanding is all the variables are stored in the 'question_answer' table.  So I've created a database view which links the 'question_answer' and the 'sn_hr_core_case' tables:

find_real_file.png

This works great, but I also now need to report on some of the 'values' being gathered where these are linking to the sys_user table - see below where most fields are OK, except the 'value' field which still shows the sys_id:

find_real_file.png

Not all the 'value' entries are users, some are pure text which I need to report on and others are linking to another user - so I need to figure out how to link this to the sys_user table and find the sys_id's where they exist.

Everytime I add the sys_user table and link via 'q&a table.value' to 'sys_user.sys_id' it ONLY shows the records where a match is found - so I don't get ALL the records and the sys_is isn't translated.

Can anyone help with this?

 

Thanks

Carl.

 

 

 

4 REPLIES 4

Jaspal Singh
Mega Patron
Mega Patron

Hi Carl,

 

For your comment

 

Everytime I add the sys_user table and link via 'q&a table.value' to 'sys_user.sys_id' it ONLY shows the records where a match is found - so I don't get ALL the records and the sys_is isn't translated.

 

All you need is to use the Left join option available in Database view & make sure q&a table.value is to the left in Where clause. Just add it by configuring the list layout for database 

find_real_file.png

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

Hi Jaspal,

Thanks for your reply - I made the change and although I can see the data, the result still shows sys_id's instead of names in the 'value' field.  The 'value' field is a large string, 4000 chars, so not sure if this is the issue, see updated database view below:

find_real_file.png

 

I hope you can help with this?

 

Thanks

Carl.

Hi Carl,

 

Value field would show sys_id all you need is to look for Name column.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

Hi - any idea on how to make this work for a list collector variable? We have multiple sys_id values on Watch List field and we wanna reference the actual users instead of having a bunch of sys_id