{"id":1038,"date":"2025-10-31T23:53:06","date_gmt":"2025-10-31T23:53:06","guid":{"rendered":"https:\/\/www.techpolaju.com\/blog\/?p=1038"},"modified":"2025-10-31T23:53:08","modified_gmt":"2025-10-31T23:53:08","slug":"file-conversion-and-sharing","status":"publish","type":"post","link":"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/","title":{"rendered":"\ud83d\ude80 5-Step Effortless Tutorial for File Conversion and Sharing"},"content":{"rendered":"\n<p>If you often receive files that need to be converted, saved, and shared manually, Power Automate can make your life much easier. In this tutorial, you\u2019ll create a simple yet powerful flow for File Conversion and Sharing that can handle everything automatically-from converting uploaded files to PDF, saving them in OneDrive, and even posting them in a Teams channel.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"516\" src=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-39-1024x516.png\" alt=\"File Conversion and Sharing\" class=\"wp-image-1068\" srcset=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-39-1024x516.png 1024w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-39-300x151.png 300w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-39-768x387.png 768w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-39.png 1523w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/#%F0%9F%A7%B0_Prerequisites\" >\ud83e\uddf0 Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/#%F0%9F%A7%B1_Step_1_Create_a_Manually_Triggered_Flow\" >\ud83e\uddf1 Step 1: Create a Manually Triggered Flow<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/#%E2%9A%99%EF%B8%8F_Step_2_Add_Three_Parallel_Condition_Actions\" >\u2699\ufe0f Step 2: Add Three Parallel Condition Actions<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/#%F0%9F%94%B9_Condition_1_Convert_to_PDF\" >\ud83d\udd39 Condition 1: Convert to PDF<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/#%E2%9C%85_If_True\" >\u2705 If True:<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/#%F0%9F%94%B9_Condition_2_Save_in_OneDrive\" >\ud83d\udd39 Condition 2: Save in OneDrive<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/#%E2%9C%85_If_True-2\" >\u2705 If True:<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/#%F0%9F%94%B9_Condition_3_Send_to_Teams_Channel\" >\ud83d\udd39 Condition 3: Send to Teams Channel<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/#%E2%9C%85_If_True-3\" >\u2705 If True:<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/#%F0%9F%A7%A9_Step_3_Test_Your_Flow\" >\ud83e\udde9 Step 3: Test Your Flow<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/#%F0%9F%8E%AF_Result\" >\ud83c\udfaf Result<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/#%F0%9F%92%A1_Bonus_Tips\" >\ud83d\udca1 Bonus Tips<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/#%F0%9F%8F%81_Wrapping_Up\" >\ud83c\udfc1 Wrapping Up<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/#%F0%9F%92%A1_Bonus_Resources\" >\ud83d\udca1 Bonus Resources<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%F0%9F%A7%B0_Prerequisites\"><\/span>\ud83e\uddf0 Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before starting, ensure you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Access to <strong>Microsoft 365<\/strong> and <strong>Power Automate<\/strong><\/li>\n\n\n\n<li>A <strong>SharePoint Document Library<\/strong> to store files<\/li>\n\n\n\n<li>A <strong>mailbox<\/strong> to send notifications<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%F0%9F%A7%B1_Step_1_Create_a_Manually_Triggered_Flow\"><\/span>\ud83e\uddf1 <strong>Step 1: Create a Manually Triggered Flow<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <a href=\"https:\/\/make.powerautomate.com\" target=\"_blank\" rel=\"noopener\">make.powerautomate.com<\/a><\/li>\n\n\n\n<li>Select <strong>Create > Instant cloud flow<\/strong><\/li>\n\n\n\n<li>Name your flow: <code>File Conversion and Sharing Flow<\/code><\/li>\n\n\n\n<li>Select <strong>Manually trigger a flow<\/strong> as the trigger<\/li>\n\n\n\n<li>Click <strong>Create<\/strong><\/li>\n<\/ol>\n\n\n\n<p>Now, add the following <strong>input parameters<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>File Content (File)<\/strong> \u2013 The file you want to upload<\/li>\n\n\n\n<li><strong>Convert to PDF (Yes\/No)<\/strong><\/li>\n\n\n\n<li><strong>Save in OneDrive (Yes\/No)<\/strong><\/li>\n\n\n\n<li><strong>Send to Teams Channel (Yes\/No)<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"995\" height=\"596\" src=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-27.png\" alt=\"Power automate manual trigger and parameters\" class=\"wp-image-1044\" srcset=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-27.png 995w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-27-300x180.png 300w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-27-768x460.png 768w\" sizes=\"auto, (max-width: 995px) 100vw, 995px\" \/><\/figure>\n\n\n\n<p>These parameters will control the flow\u2019s actions for File Conversion and Sharing.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E2%9A%99%EF%B8%8F_Step_2_Add_Three_Parallel_Condition_Actions\"><\/span>\u2699\ufe0f <strong>Step 2: Add Three Parallel Condition Actions<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>After the trigger, add a <strong>Condition<\/strong> action, then right-click the <strong>plus (+)<\/strong> icon above it and select <strong>\u201cAdd a parallel branch\u201d<\/strong> to add two more conditions running in parallel.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"505\" height=\"252\" src=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-28.png\" alt=\"Power automate parallel branch\" class=\"wp-image-1046\" srcset=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-28.png 505w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-28-300x150.png 300w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><\/figure><\/div>\n\n\n<p>Once all three conditions are set in parallel, it will look like this. Next, we\u2019ll configure the condition expression in each one as shown in the steps below.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"896\" height=\"347\" src=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-29.png\" alt=\"Conditions in Parallel Branches\" class=\"wp-image-1047\" srcset=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-29.png 896w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-29-300x116.png 300w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-29-768x297.png 768w\" sizes=\"auto, (max-width: 896px) 100vw, 896px\" \/><\/figure><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%F0%9F%94%B9_Condition_1_Convert_to_PDF\"><\/span>\ud83d\udd39 <strong>Condition 1: Convert to PDF<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><strong>Condition expression:<\/strong><br>Set the condition to <strong>Convert to PDF is equal to true<\/strong>. Here, <em>Convert to PDF<\/em> is the parameter from the trigger. You can select it by placing your cursor in the field and clicking the <strong>dynamic content (flash)<\/strong> icon.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"229\" src=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-30-1024x229.png\" alt=\"Power automate condition action\" class=\"wp-image-1048\" srcset=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-30-1024x229.png 1024w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-30-300x67.png 300w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-30-768x172.png 768w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-30-1536x344.png 1536w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-30.png 1862w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E2%9C%85_If_True\"><\/span>\u2705 If True:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>Here, we\u2019re using the following actions to convert the file to PDF and then send it as an email attachment. <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Create file (OneDrive)<\/strong><br>First, we need to create the file in OneDrive within a folder-for example, a temporary <strong>\/tmp<\/strong> folder. <br><br>Set the parameters as shown below. You can either copy and paste the expressions for <strong>File Name<\/strong> and <strong>File Content<\/strong> provided below or select them from the dynamic content list by clicking the <strong>flash icon<\/strong> after placing your cursor inside the field. These two dynamic contents come from the <strong>File<\/strong> parameter of the trigger.<br>\n<ul class=\"wp-block-list\">\n<li>Folder Path: <code>\/tmp<\/code><\/li>\n\n\n\n<li>File Name: <code>@{triggerBody()?['file']?['name']}<\/code><\/li>\n\n\n\n<li>File Content: <code>@{triggerBody()?['file']?['contentBytes']}<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"602\" src=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-31-1024x602.png\" alt=\"Create File OneDrive Action\" class=\"wp-image-1051\" srcset=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-31-1024x602.png 1024w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-31-300x176.png 300w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-31-768x451.png 768w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-31.png 1295w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Convert file (OneDrive)<\/strong><br>This action is used to convert Word, Excel, and text files to PDF. Since we cannot directly use the uploaded file here, we first created the file in the previous action within the <strong>\/tmp<\/strong> folder and are now using it for conversion.<br><br>Set the parameters as shown below. You can either copy and paste the expressions for <strong>Id <\/strong>provided below or select them from the dynamic content list by clicking the <strong>flash icon<\/strong> after placing your cursor inside the field.\n<ul class=\"wp-block-list\">\n<li>File: <code>@{outputs('Create_file_4')?['body\/Id']}<\/code><\/li>\n\n\n\n<li>Target Type: <code>PDF<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"574\" src=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-32-1024x574.png\" alt=\"Convert File OneDrive Action\" class=\"wp-image-1053\" srcset=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-32-1024x574.png 1024w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-32-300x168.png 300w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-32-768x430.png 768w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-32.png 1301w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Send an email (V2)<\/strong> to share the converted PDF\n<ul class=\"wp-block-list\">\n<li><strong>To:<\/strong> Your email address<\/li>\n\n\n\n<li><strong>Subject:<\/strong> <code>@{triggerBody()?['file']?['name']} Converted to PDF<\/code><\/li>\n\n\n\n<li><strong>Body:<\/strong> <code>Please find attached PDF file.<\/code><\/li>\n\n\n\n<li><strong>Attachments:<\/strong> <br><code>[ { \"Name\": @{outputs('Convert_file')?['headers\/x-ms-file-name']}, \"ContentBytes\": @{body('Convert_file')} } ]<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"592\" src=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-33-1024x592.png\" alt=\"Send an email (V2) action\" class=\"wp-image-1056\" srcset=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-33-1024x592.png 1024w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-33-300x173.png 300w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-33-768x444.png 768w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-33.png 1345w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This branch completes the <strong>file conversion<\/strong> part of your File Conversion and Sharing flow.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%F0%9F%94%B9_Condition_2_Save_in_OneDrive\"><\/span>\ud83d\udd39 <strong>Condition 2: Save in OneDrive<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><strong>Condition expression:<\/strong><br>Set the condition to <strong>Save in OneDrive is equal to true<\/strong>. Here, <em>Save in OneDrive<\/em> is the parameter from the trigger. You can select it by placing your cursor in the field and clicking the <strong>dynamic content (flash)<\/strong> icon.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E2%9C%85_If_True-2\"><\/span>\u2705 If True:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>Here, we\u2019re using the following action to save the file to a selected folder in OneDrive.<\/p>\n\n\n\n<p><strong>Create file (OneDrive)<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Folder Path: <code>\/From My Flow<\/code><\/li>\n\n\n\n<li>File Name: <code>@{triggerBody()?['file']?['name']}<\/code><\/li>\n\n\n\n<li>File Content: <code>@{triggerBody()?['file']?['contentBytes']}<\/code><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"429\" src=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-34-1024x429.png\" alt=\"Create File OneDrive Action\" class=\"wp-image-1058\" srcset=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-34-1024x429.png 1024w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-34-300x126.png 300w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-34-768x321.png 768w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-34.png 1486w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>This saves the uploaded file directly into your OneDrive folder as part of the File Conversion and Sharing workflow.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%F0%9F%94%B9_Condition_3_Send_to_Teams_Channel\"><\/span>\ud83d\udd39 <strong>Condition 3: Send to Teams Channel<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><strong>Condition expression:<\/strong><br>Set the condition to <strong>Send to Teams Channel is equal to true<\/strong>. Here, <em>Send to Teams Channel<\/em> is the parameter from the trigger. You can select it by placing your cursor in the field and clicking the <strong>dynamic content (flash)<\/strong> icon.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E2%9C%85_If_True-3\"><\/span>\u2705 If True:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>Here, we\u2019re using the following actions to upload the file to a Teams channel and then post a message about it.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Get details for a specific channel in a team<\/strong>\n<ul class=\"wp-block-list\">\n<li>Select your Team and Channel from dropdowns<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"460\" src=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-35-1024x460.png\" alt=\"Get details for a specific channel in a team action\" class=\"wp-image-1061\" srcset=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-35-1024x460.png 1024w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-35-300x135.png 300w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-35-768x345.png 768w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-35-1536x691.png 1536w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-35.png 1550w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<p>The above action provides the URL of the SharePoint site behind the selected Teams channel, which we will use in the next action below.<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Create file (SharePoint)<\/strong> \u2013 this will upload to the Teams channel\u2019s connected SharePoint site.<br>Copy and paste the expressions provided below into the respective fields. For <strong>Site Address<\/strong> and <strong>Folder Path<\/strong>, we are using the URL from the previous action, <strong>\u201cGet details for a specific channel in a team\u201d<\/strong>, and applying several functions to extract and set the site address and folder path accordingly.<br>\n<ul class=\"wp-block-list\">\n<li><strong>Site Address:<\/strong> <code>@{join( take( split(outputs('Get_details_for_a_specific_channel_in_a_team')?['body\/filesFolderWebUrl'], '\/'), sub(length(split(outputs('Get_details_for_a_specific_channel_in_a_team')?['body\/filesFolderWebUrl'], '\/')), 2) ), '\/' )}<\/code><\/li>\n\n\n\n<li><strong>Folder Path:<\/strong> <code>@{join( skip( split(outputs('Get_details_for_a_specific_channel_in_a_team')?['body\/filesFolderWebUrl'], '\/'), sub(length(split(outputs('Get_details_for_a_specific_channel_in_a_team')?['body\/filesFolderWebUrl'], '\/')), 2) ), '\/' )}<\/code><\/li>\n\n\n\n<li><strong>File Name:<\/strong> <code>@{triggerBody()?['file']?['name']}<\/code><\/li>\n\n\n\n<li><strong>File Content:<\/strong> <code>@{triggerBody()?['file']?['contentBytes']}<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"481\" src=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-36-1024x481.png\" alt=\"Create File SharePoint action\" class=\"wp-image-1062\" srcset=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-36-1024x481.png 1024w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-36-300x141.png 300w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-36-768x361.png 768w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-36-1536x722.png 1536w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-36.png 1555w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Post message in a chat or channel<\/strong><br>Once the file is uploaded, we use this action to post a message in the Teams channel.<br>\n<ul class=\"wp-block-list\">\n<li><strong>Post as:<\/strong> User<\/li>\n\n\n\n<li><strong>Post in:<\/strong> Channel<\/li>\n\n\n\n<li><strong>Team:<\/strong> Select same team<\/li>\n\n\n\n<li><strong>Channel:<\/strong> Select same channel<\/li>\n\n\n\n<li><strong>Message:<\/strong> First, click the <strong>&lt;\/><\/strong> tool to switch to HTML mode, then copy and paste the expression below in HTML format.<br><code>&lt;a href=\"@{concat(outputs('Get_details_for_a_specific_channel_in_a_team')?['body\/filesFolderWebUrl'],'\/',outputs('Create_file_2')?['body\/Name'])}\">@{triggerBody()?['file']?['name']}&lt;\/a>                  <\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"435\" src=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-37-1024x435.png\" alt=\"Post message in a chat or channel action\" class=\"wp-image-1064\" srcset=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-37-1024x435.png 1024w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-37-300x128.png 300w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-37-768x327.png 768w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-37-1536x653.png 1536w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-37.png 1552w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This completes the <strong>sharing<\/strong> portion of your File Conversion and Sharing process.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%F0%9F%A7%A9_Step_3_Test_Your_Flow\"><\/span>\ud83e\udde9 <strong>Step 3: Test Your Flow<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click <strong>Test > Manually<\/strong><\/li>\n\n\n\n<li>Upload a sample file and select <strong>Yes<\/strong> for desired actions<\/li>\n\n\n\n<li>Run the flow and verify:\n<ul class=\"wp-block-list\">\n<li>Converted PDF arrives by email<\/li>\n\n\n\n<li>File appears in OneDrive<\/li>\n\n\n\n<li>File and message post in the Teams channel<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"628\" src=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-38-1024x628.png\" alt=\"Manual flow for automated tasks testing\" class=\"wp-image-1066\" srcset=\"https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-38-1024x628.png 1024w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-38-300x184.png 300w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-38-768x471.png 768w, https:\/\/www.techpolaju.com\/blog\/wp-content\/uploads\/2025\/10\/image-38.png 1206w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%F0%9F%8E%AF_Result\"><\/span>\ud83c\udfaf <strong>Result<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You now have a reusable <strong>F<\/strong>ile Conversion and Sharin<strong>g<\/strong> flow that can:<br>\u2705 Convert any uploaded file to PDF<br>\u2705 Save the original or converted file in OneDrive<br>\u2705 Share files automatically in a Teams channel<\/p>\n\n\n\n<p>All triggered manually with just one click.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%F0%9F%92%A1_Bonus_Tips\"><\/span>\ud83d\udca1 <strong>Bonus Tips<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ud83e\udde0 Use folder cleanup to clear the <code>\/tmp<\/code> directory periodically.<\/li>\n\n\n\n<li>\ud83d\udcce You can add dynamic email recipients or Teams mentions to improve collaboration.<\/li>\n\n\n\n<li>\u26a1 Convert this manual flow into an automated trigger (like when a new file is added to a SharePoint library) to scale your File Conversion and Sharing process even more.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%F0%9F%8F%81_Wrapping_Up\"><\/span>\ud83c\udfc1 <strong>Wrapping Up<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>This File Conversion and Sharing tutorial demonstrates how easy it is to automate repetitive document handling with Power Automate. With one manual trigger, your flow can convert, store, and share files seamlessly across Microsoft 365 services-saving you time and clicks every day.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%F0%9F%92%A1_Bonus_Resources\"><\/span>\ud83d\udca1 Bonus Resources<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/contract-renewal-alert\/\">\ud83d\udd27\u00a0Powerful Automated Contract Renewal Alert in 11 Steps<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/automate-invoice-email\/\">\u26a1\u00a05 Easy Steps to Automate Invoice Email to SharePoint<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/substring-function\/\">\u26a1Ultimate Power Automate Substring Function Explained \u2013 6 Powerful Examples<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>If you often receive files that need to be converted, saved, and shared manually, Power Automate can make your life much easier. In this tutorial, you\u2019ll create a simple yet powerful flow for File Conversion and Sharing that can handle everything automatically-from converting uploaded files to PDF, saving them in OneDrive, and even posting them &#8230; <a title=\"\ud83d\ude80 5-Step Effortless Tutorial for File Conversion and Sharing\" class=\"read-more\" href=\"https:\/\/www.techpolaju.com\/blog\/power-automate\/file-conversion-and-sharing\/\" aria-label=\"Read more about \ud83d\ude80 5-Step Effortless Tutorial for File Conversion and Sharing\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-1038","post","type-post","status-publish","format-standard","hentry","category-power-automate"],"_links":{"self":[{"href":"https:\/\/www.techpolaju.com\/blog\/wp-json\/wp\/v2\/posts\/1038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techpolaju.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techpolaju.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techpolaju.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techpolaju.com\/blog\/wp-json\/wp\/v2\/comments?post=1038"}],"version-history":[{"count":20,"href":"https:\/\/www.techpolaju.com\/blog\/wp-json\/wp\/v2\/posts\/1038\/revisions"}],"predecessor-version":[{"id":1073,"href":"https:\/\/www.techpolaju.com\/blog\/wp-json\/wp\/v2\/posts\/1038\/revisions\/1073"}],"wp:attachment":[{"href":"https:\/\/www.techpolaju.com\/blog\/wp-json\/wp\/v2\/media?parent=1038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techpolaju.com\/blog\/wp-json\/wp\/v2\/categories?post=1038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techpolaju.com\/blog\/wp-json\/wp\/v2\/tags?post=1038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}