Create incident button on knowledge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023 02:34 AM
I am attempting to modify the "Create Incident' button from the Knowledge Article view.
My Goal
My knowledge article form is going create an INC record is pre-populate incident mandatory field value when clicking on the 'Create Incident' button.
For example Caller, company, short description, location ect.
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023 02:49 AM
HI @dgarad ,
I trust you are doing great.
- n the Studio, select the appropriate application scope where your knowledge article form is located.
- Locate the knowledge article form and open it for editing.
- Find the section or area where the "Create Incident" button is defined.
- Modify the button code to include a script that pre-populates the mandatory incident fields with desired values.
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2023 12:43 AM
Thanks for your response @Amit Gujarathi
There is no any script only one system property
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2023 02:56 AM
Hi @dgarad ,
You need to update the property "glide.knowman.create_incident_link" value similar to the below sample value to achieve your objective.
incident.do?sys_id=-1&sysparm_query=active=true^caller=${gs.getUserID()}^short_description=${knowledgeRecord.short_description}^description=test description^comments=(Created after Knowledge search: $[encodedKb_desc])&sysparm_stack=knowledge_home_launcher.do
Note:
Above sample contains, examples to set incident field using script, static text or copy from a field in KB article. Hope this helps.
PS: Please hit "Correct", "Helpful" or "Like" depending on the impact of the response.
Regards,
Kamal S