We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

UI Action to redirect to Knowledge Article form (without hardcoded url)

F_bio Santos
Kilo Sage

Hi everyone I have a requirement to make a UI Action that when clicked, it will redirect the user to the knowledge article form so that the user can create a new article, does anyone know's how to make this redirect dinamic ?

(without a hardcoded url)

1 ACCEPTED SOLUTION

Thanks,

That UI action you copied is specific to the 'Incident Management for Service Operations Workspace' scope, so if you've copied the code and are running it in a different scope (for example global) you'll end up with an error and the UI action failing.

 

Change

new SOWIncidentKnowledgeUtils().getNewKnowledgeArticleLink(current);

to

new global.IncidentKnowledgeUtils().getNewKnowledgeArticleLink(current);

View solution in original post

6 REPLIES 6

Thanks,

That UI action you copied is specific to the 'Incident Management for Service Operations Workspace' scope, so if you've copied the code and are running it in a different scope (for example global) you'll end up with an error and the UI action failing.

 

Change

new SOWIncidentKnowledgeUtils().getNewKnowledgeArticleLink(current);

to

new global.IncidentKnowledgeUtils().getNewKnowledgeArticleLink(current);

I ended up using other code, but I tried to do this change that you recomended and it also worked