Blog Post

Azure Integration Services Blog
1 MIN READ

Re: Attaching a file to a DevOps Work Item

slim007's avatar
slim007
Copper Contributor
Feb 07, 2025

Hi there,

I am using Power Automate to create an Azure DevOps work item and attach a Sharepoint zip file to the work item.  I am able to create the Azure DevOps work item and attach the file, but when I try to open the attached zip file from Azure DevOps, it does not display any contents.  Do you have any suggestions?  I can show a sample of my Power Automate flow if that helps.  Thank you!

Published Feb 07, 2025
Version 1.0

6 Comments

  • Pedro_M_Almeida's avatar
    Pedro_M_Almeida
    Icon for Microsoft rankMicrosoft

    hi slim007,

    if you upload the Base64 contents, it should show you everything in DevOps, the file should be accessible... if it's empty but not corrupted, something is off. if it's returning a corrupted ZIP package, then the upload didn't go as expected, but if it's showing an empty ZIP, then it may be that it was empty before that.

    also, check if this is a supported file for the API, I'm not sure and didn't test this scenario.

    • slim007's avatar
      slim007
      Copper Contributor

      Hi Pedro_M_Almeida,

      Thank you quick response and advice!  I am thinking there is something wrong with the compose and json or I need to add json to the invoke to link the attachment.  Please see the attached image of my flow: 

      Below is the compose and json for the create work item:

       Any advice would be greatly appreciated.  Thank you!

      • Pedro_M_Almeida's avatar
        Pedro_M_Almeida
        Icon for Microsoft rankMicrosoft

        Your compose action is not actually converting the object to base 64..

         

         

        you need to use the expression and it must be base64(BODY)