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.

Workday Spoke Attach Employee Documents

Arthur Bernardo
Tera Expert
Hi all,
I’m working on a Workday integration where we use the OOB Action “Get Employee Documents by Employee ID” (from the Workday spoke) to retrieve employee documents as Base64-encoded strings via SOAP API.
The Action works fine — we receive the documents, and in our custom Flow Designer Subflow, we loop over the response and try to convert the Base64 content into an attachment on a custom table.
We’ve tried multiple approaches inside a Script Step in a custom Action, including:
  • GlideSysAttachment.write() using decoded strings
  • Byte arrays (using charCodeAt)
  • writeBase64() with all required inputs
  • Using a Script Include or doing it directly in the Script Step
All return “Success”, and no errors are thrown, but the attachment is never created.

 

 What we’ve ruled out:
  • Table allows attachments (Allow attachments is enabled)
  • Scope has create access and scriptable access to sys_attachment
  • We've tested the exact same code in a Background Script — and it works perfectly
Has anyone experienced this silent failure when creating attachments via custom Actions? Any advice on how to make writeBase64() or any alternative approach work within a Flow Designer Action?
Thanks in advance!
2 REPLIES 2

DIMITRIS IORDAN
Tera Contributor

Hi did you find a solution for this?

I haven’t found a solution yet.