ServicePortal to create a reference field

David156
Giga Contributor

Hello,

 

How to define the reference field in the Service Portal 

i have one reference field of the cmn_location which I have to show to portal help me on this

1 ACCEPTED SOLUTION

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,

We need to use record-picker for that as below example

<sn-record-picker field="location" table="'cmn_location'"   display-field="'name'" display-fields="'city,zip'" value-field="'sys_id'" search-fields="'name'" page-size="100" ></sn-record-picker>

 

Thanks,
Ashutosh

View solution in original post

4 REPLIES 4

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,

We need to use record-picker for that as below example

<sn-record-picker field="location" table="'cmn_location'"   display-field="'name'" display-fields="'city,zip'" value-field="'sys_id'" search-fields="'name'" page-size="100" ></sn-record-picker>

 

Thanks,
Ashutosh

Hi,


If you got your answer please mark my answer as correct and close this thread.

 

Thanks,
Ashutosh

Namrata Khabale
Giga Guru

Hey David,

 

I hope below link answer your purpose, I find it very decent and step by step explanation:

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

 

Mark Correct and Helpful if you find my response worthy!!!

 

Best Regards,

Namrata.