How to create a new record in Service Portal

RichardSaunders
Tera Guru

I'm trying to create a new record for a custom table (u_qsse_query) from an 'Icon Link' Widget. If i set the URL to u_qsse_query.do it opens a record but not in the portal (as expected). I have tried linking it to a new page (qsse_log_query) but when i click on Log a Query all i get it 'record not found'. How can i link it to create a new record within the portal view.

find_real_file.png

find_real_file.png

I'm sure i'm missing something very simple here, help greatly appreciated!

1 ACCEPTED SOLUTION

Hi Richard,



You should use below link



/sp?id=form&table=u_qsse_query&sys_id=-1



form is the Service portal widget. You need to pass sys_id as -1, so that it creates a new record.



Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

8 REPLIES 8

Spot on! Thank you!


Apologies for piggy backing another question!



If i wanted to add other widgets above the new record i would create a page add the widget i require (e.g Breadcrumb, Icon Link and form)



find_real_file.png


In the Form widget i launched 'Open in Platform' and added the URL you provided



find_real_file.png



but this time i get Record not found in the Form widget.



find_real_file.png



Any ideas?


You need two pages.



One with the icon Link. When you click that it should point to another page. That 2nd page should have the form widget.



So the icon link url on page1 should now point to /QSSE?id=your_2nd_page_id&table=u_qsse_query&sys_id=-1, where the form widget lies



Please mark this response as correct or helpful if it assisted you with your question.

Got it cheers!