- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 10:00 AM
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...
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 02:09 PM
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/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2022 09:17 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 10:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 11:43 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 11:43 AM
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?