Is there official documentation on the snRecordPicker?

DJ Wolfson
Kilo Sage

I'm currently looking for official documentation on snRecordPicker (<sn-record-picke>). I've had little luck with the limited amount of posts on this API from the forums. Most aren't fully up-to-date, or not fully describing all possible inputs. The best I've found was someone pasting source code of the API, but this is given the post is a few years old, and uncommented, I was hoping someone new of official documentation on this API.

Link to the post I'm referring to: https://community.servicenow.com/community?id=community_question&sys_id=b177df7ddbec97040e3dfb651f96...

1 ACCEPTED SOLUTION

Not documentation, but a little wizard that walks you through the values needed and then produces a sample and generates the code from the input:

https://snhackery.com/2022/05/06/sn-record-picker-helper-corrected-again/

find_real_file.png

View solution in original post

8 REPLIES 8

Hi,

You marked it as Helpful and Correct. Which is fine, if that's what it was to you.

No other reply was marked as Helpful...which implies that they weren't, sorry if that was the case.

Anyways, I just wanted to double-check as you had asked for documentation and the wizard, which is neat, doesn't really do that and then the other posts that were about documentation, weren't recorded as Helpful or anything, haha.

Look forward to your own article post when you get a chance to do that. Hopefully that will be helpful for others and as always, they'll mark it as such 😉

Take care!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

nathanfirth
Tera Guru

@Allen Andreas. Thanks. I also have a more detailed post here, with a demo widget you can download:

https://serviceportal.io/sn-record-picker/ 

This documentation is pretty dated, and missing current/newer inputs. I was hoping for something more in depth. The link I put in my post lists these inputs:

restrict: 'E',
replace: true,
scope: {
field: '=',
table: '=',
defaultQuery: '=?',
startswith: '=?',
searchFields: '=?',
valueField: '=?',
displayField: '=?',
displayFields: '=?',
pageSize: '=?',
onChange: '&',
snDisabled: '=',
multiple: '=?',
options: '=?',
placeholder: '@'

The majority of these are not detailed in either of the links given so far. Do you know of any other resources that can explain them?

This documentation is pretty dated, and missing current/newer inputs. I was hoping for something more in depth. The link I put in my post lists these inputs:

restrict: 'E',
replace: true,
scope: {
field: '=',
table: '=',
defaultQuery: '=?',
startswith: '=?',
searchFields: '=?',
valueField: '=?',
displayField: '=?',
displayFields: '=?',
pageSize: '=?',
onChange: '&',
snDisabled: '=',
multiple: '=?',
options: '=?',
placeholder: '@'

The majority of these are not detailed in either of the links given so far. Do you know of any other resources that can explain them?