Save Populated Word Template Content in Variable Using Power Automate | CloudFronts

Save Populated Word Template Content in Variable Using Power Automate

Introduction: We had a requirement where based on switch case condition, we had to populate different word templates.

Power automate Action used was Populate a Microsoft Template. Since we did not want write the actions check SharePoint folder and create file in SharePoint with populated template content, we tired to store the content in an Object Variable.

However, that corrupted the content. ( To understand how to populate Word Template using Power Automate check my blog – https://www.cloudfronts.com/create-and-populate-word-template-using-power-automate/).

Solution:

  1. Add Action Compose and store the populate Microsoft Word Template content in that.
  2. Now store the Compose Output in the variable of type Object.

Output:

Below is sample output of how your file content does not get corrupted when you move it from Compose Action to a Variable.


Share Story :

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close