Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Declarative Action or UI Action not executing properly in Service Operations Workspace

Daniel142
Tera Expert

 

Hi everyone! 👋

I’m currently facing an issue with a Declarative Action (also tested as a UI Action) that works perfectly in the standard UI (UI16) but does not execute correctly in Service Operations Workspace (SOW).

Here’s the situation:

  • The action is configured to generate and immediately download a PDF using sn_pdfgeneratorutils.PDFGenerationAPI().convertToPDFWithHeaderFooter().

  • In UI16, the script runs without problems — the PDF is generated and downloaded automatically as expected.

  • However, in Service Operations Workspace, the behavior changes:

    • It opens the attachment record page with the PDF name.

    • The file is saved correctly as an attachment on the record.

    • But the automatic download never starts.

Has anyone encountered this behavior or found a workaround to force file downloads from Declarative Actions in Service Operations Workspace?
Any insight in Workspaces would be super helpful. 🙏

 

Daniel142_0-1760032399801.png

 

0 REPLIES 0