Try this: Set the "Files choice mode" in the "Add attachment" action configuration to "Based on SQL query". Paste the following query into the "SQL for choosing source file" field: SELECT CAST(N'' AS XML).value('xs:base64Binary("{SNT:1196}")', 'VARBINARY(MAX)') AS Content, 'file