Workday Spoke Attach Employee Documents
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2025 10:25 AM
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:
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!
Thanks in advance!
Labels:
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2025 05:05 AM
Hi did you find a solution for this?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2025 05:42 AM
I haven’t found a solution yet.