{"id":5151,"date":"2024-01-15T12:51:37","date_gmt":"2024-01-15T12:51:37","guid":{"rendered":"https:\/\/powergi.net\/?p=5151"},"modified":"2025-09-09T21:31:23","modified_gmt":"2025-09-09T21:31:23","slug":"azure-function-upload-files-to-sharepoint","status":"publish","type":"post","link":"https:\/\/powergi.net\/de\/blog\/azure-function-upload-files-to-sharepoint\/","title":{"rendered":"Azure Function App: upload files to SharePoint from a public URL"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"5151\" class=\"elementor elementor-5151\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0f56e30 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0f56e30\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0f6f932\" data-id=\"0f6f932\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0dab5fd elementor-widget elementor-widget-text-editor\" data-id=\"0dab5fd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">This blog will show step by step how to create an Azure Function App to upload files to SharePoint using C#.<\/span><\/p><p><span style=\"font-weight: 400;\">This code will receive a public URL that contains a <a href=\"https:\/\/powergi.net\/blog\/automate-downloading-files-from-website\/\"><strong>file to download<\/strong><\/a>, and we will <a href=\"https:\/\/powergi.net\/blog\/power-automate-upload-file-to-sharepoint\/\"><strong>upload this file to SharePoint<\/strong><\/a>, using the Graph API \u2013 and by the way, this function was created by our colleague <\/span><a href=\"https:\/\/www.linkedin.com\/in\/andhonyhdz\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Andhony Hernandez<\/span><\/a><span style=\"font-weight: 400;\"> for a real use case we recently worked on!<\/span><\/p><p>At our <a href=\"https:\/\/powergi.net\/microsoft-power-platform-consulting-services\/\"><strong>Microsoft Power platform consulting<\/strong><\/a> team, we often work with automation solutions that integrate seamlessly with SharePoint and Azure. This particular solution is designed to streamline file uploads efficiently.<\/p><p><span style=\"font-weight: 400;\">Ok, let\u2019s get into it!<\/span><\/p><p><span style=\"font-weight: 400;\">But first, this is an example of how the request will look:\u00a0<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a1b7993 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a1b7993\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f218412\" data-id=\"f218412\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fb83955 elementor-widget elementor-widget-image\" data-id=\"fb83955\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"512\" height=\"64\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/unnamed-18.png\" class=\"attachment-large size-large wp-image-5156\" alt=\"public URL\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/unnamed-18.png 512w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/unnamed-18-300x38.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-229b5db elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"229b5db\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-894c795\" data-id=\"894c795\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-63c2b59 elementor-widget elementor-widget-text-editor\" data-id=\"63c2b59\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">First, let\u2019s define the request structure.\u00a0<\/span><\/p><div id=\"seology-cta-1\">\t\t<div data-elementor-type=\"section\" data-elementor-id=\"7267\" class=\"elementor elementor-7267\" data-elementor-post-type=\"elementor_library\">\n\t\t\t<div class=\"elementor-element elementor-element-7e3f164 e-con-full e-flex e-con e-parent\" data-id=\"7e3f164\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"background_background\":\"classic\",\"jet_parallax_layout_list\":[]}'>\n\t\t<div class=\"elementor-element elementor-element-9078c9f e-con-full e-flex e-con e-child\" data-id=\"9078c9f\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t<div class=\"elementor-element elementor-element-7b99949 elementor-widget elementor-widget-heading\" data-id=\"7b99949\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">Turn your ideas into digital solutions<\/p>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8e61db5 elementor-widget elementor-widget-heading\" data-id=\"8e61db5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">Our team guides you step by step to build custom apps in Power Platform.<\/p>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-a578907 e-flex e-con-boxed e-con e-child\" data-id=\"a578907\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e8c827b elementor-view-stacked elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"e8c827b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<a class=\"elementor-icon\" href=\"#ctc_chat\">\n\t\t\t<i aria-hidden=\"true\" class=\"fab fa-whatsapp\"><\/i>\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d834237 elementor-view-stacked elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"d834237\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<a class=\"elementor-icon\" href=\"https:\/\/powergi.net\/de\/contact\/\">\n\t\t\t<i aria-hidden=\"true\" class=\"far fa-envelope\"><\/i>\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<\/div>\n<p><b>{function-endpoint}<\/b><span style=\"font-weight: 400;\">\/api\/DownloadAndUploadFunction?code=<\/span><b>{code}<\/b><span style=\"font-weight: 400;\">&amp;fileName=<\/span><b>{file-name}<\/b><span style=\"font-weight: 400;\">&amp;url=<\/span><b>{public-url}<\/b><\/p>\n<p><span style=\"font-weight: 400;\">We will receive 3 query parameters:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Code: <\/b><span style=\"font-weight: 400;\">this is to authenticate our request, not required if your function is not set up to have authentication<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>fileName: <\/b><span style=\"font-weight: 400;\">which name we will save the file as when uploaded to SharePoint<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>url:<\/b><span style=\"font-weight: 400;\"> public URL that contains the file we want to upload.Steps<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">We need to complete the following steps to have our function up and running.<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Register an application in the Azure portal that grants you access to upload files to SharePoint.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Obtain Site ID, Library ID (drive id) and folder ID (item ID) where your files will be stored.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create your function code in Visual Studio.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create Function App in the Azure portal and publish your code.<\/span><\/li><\/ol><ul>\n<\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f1214ce elementor-widget elementor-widget-table-of-contents\" data-id=\"f1214ce\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings='{\"exclude_headings_by_selector\":[],\"no_headings_message\":\"No headings were found on this page.\",\"headings_by_tags\":[\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"],\"marker_view\":\"numbers\",\"hierarchical_view\":\"yes\",\"min_height\":{\"unit\":\"px\",\"size\":\"\",\"sizes\":[]},\"min_height_tablet\":{\"unit\":\"px\",\"size\":\"\",\"sizes\":[]},\"min_height_mobile\":{\"unit\":\"px\",\"size\":\"\",\"sizes\":[]}}' data-widget_type=\"table-of-contents.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-toc__header\">\n\t\t\t\t\t\t<h4 class=\"elementor-toc__header-title\">\n\t\t\t\tTable of Contents\t\t\t<\/h4>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div id=\"elementor-toc__f1214ce\" class=\"elementor-toc__body\">\n\t\t\t<div class=\"elementor-toc__spinner-container\">\n\t\t\t\t<i class=\"elementor-toc__spinner eicon-animation-spin eicon-loading\" aria-hidden=\"true\"><\/i>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0156af9 elementor-widget elementor-widget-text-editor\" data-id=\"0156af9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2 style=\"font-style: normal;\"><span style=\"font-weight: 700;\">Register an application in the Azure portal that grants you access to upload files to SharePoint.<\/span><\/h2><p style=\"font-size: 15px; font-style: normal; font-weight: 400; color: rgb(0, 0, 0);\">Go to\u00a0<a href=\"https:\/\/portal.azure.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/portal.azure.com\/<\/a>, and navigate to\u00a0<span style=\"font-weight: 700;\">App registrations<\/span><\/p><ul style=\"font-size: 15px; font-style: normal; font-weight: 400; color: rgb(0, 0, 0);\"><li aria-level=\"1\" style=\"font-size: 15px; font-weight: 400;\">Click on\u00a0<span style=\"font-weight: 700;\">New registration<\/span><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-55db839 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"55db839\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1850af6\" data-id=\"1850af6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-dcfb932 elementor-widget elementor-widget-image\" data-id=\"dcfb932\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"619\" height=\"159\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_4.jpg\" class=\"attachment-large size-large wp-image-5167\" alt=\"Click on New registration\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_4.jpg 619w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_4-300x77.jpg 300w\" sizes=\"(max-width: 619px) 100vw, 619px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4f36690 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4f36690\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2de346e\" data-id=\"2de346e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2f1eca9 elementor-widget elementor-widget-text-editor\" data-id=\"2f1eca9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">Assign a name to the registration and select \u201cAccounts in this organizational directory only\u201d.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9eadf02 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9eadf02\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-93e1455\" data-id=\"93e1455\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-41a5729 elementor-widget elementor-widget-image\" data-id=\"41a5729\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"397\" height=\"428\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_5.jpg\" class=\"attachment-large size-large wp-image-5168\" alt=\"Register an Application\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_5.jpg 397w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_5-278x300.jpg 278w\" sizes=\"(max-width: 397px) 100vw, 397px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c5943a6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c5943a6\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c39a4b6\" data-id=\"c39a4b6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-200c0c4 elementor-widget elementor-widget-text-editor\" data-id=\"200c0c4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Go to <\/span><b>API Permissions<\/b><span style=\"font-weight: 400;\"> and click on <\/span><b>Add permission<\/b><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-aa57323 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"aa57323\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-10015c5\" data-id=\"10015c5\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a1e8de3 elementor-widget elementor-widget-image\" data-id=\"a1e8de3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"349\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_6.jpg\" class=\"attachment-large size-large wp-image-5169\" alt=\"Go to API Permissions and click on Add permission\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_6.jpg 766w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_6-300x137.jpg 300w\" sizes=\"(max-width: 766px) 100vw, 766px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c53bc1f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c53bc1f\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ecf9cd6\" data-id=\"ecf9cd6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4a3290c elementor-widget elementor-widget-text-editor\" data-id=\"4a3290c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In the next panel, select <\/span><b>Microsoft Graph<\/b><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a43f106 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a43f106\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bf65c98\" data-id=\"bf65c98\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9f41d90 elementor-widget elementor-widget-image\" data-id=\"9f41d90\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"775\" height=\"297\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_8.jpg\" class=\"attachment-large size-large wp-image-5170\" alt=\"Select Microsoft Graph\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_8.jpg 775w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_8-300x115.jpg 300w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_8-768x294.jpg 768w\" sizes=\"(max-width: 775px) 100vw, 775px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-aacfd12 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"aacfd12\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a368335\" data-id=\"a368335\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5aae30a elementor-widget elementor-widget-text-editor\" data-id=\"5aae30a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click on <\/span><b>Application permissions<\/b><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7385149 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7385149\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-176b500\" data-id=\"176b500\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-202fd28 elementor-widget elementor-widget-image\" data-id=\"202fd28\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"266\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_9.jpg\" class=\"attachment-large size-large wp-image-5171\" alt=\"Click on Application permissions\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_9.jpg 781w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_9-300x102.jpg 300w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_9-768x262.jpg 768w\" sizes=\"(max-width: 781px) 100vw, 781px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a1559a8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a1559a8\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-02eefec\" data-id=\"02eefec\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e0bca08 elementor-widget elementor-widget-text-editor\" data-id=\"e0bca08\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In the search bar, find <\/span><b>Files.ReadWrite.All<\/b><span style=\"font-weight: 400;\">, and select it from the results.<\/span><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-cf4924f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"cf4924f\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fcf108c\" data-id=\"fcf108c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ea381db elementor-widget elementor-widget-image\" data-id=\"ea381db\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"785\" height=\"242\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_10.jpg\" class=\"attachment-large size-large wp-image-5172\" alt=\"Find Files.ReadWrite.All\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_10.jpg 785w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_10-300x92.jpg 300w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_10-768x237.jpg 768w\" sizes=\"(max-width: 785px) 100vw, 785px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-efbf698 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"efbf698\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4dfb2f3\" data-id=\"4dfb2f3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e7f36bd elementor-widget elementor-widget-text-editor\" data-id=\"e7f36bd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Once added to the list, click on <\/span><b>Grant admin consent for [your company name]<\/b><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4f95df5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4f95df5\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-46937c1\" data-id=\"46937c1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d1753fb elementor-widget elementor-widget-image\" data-id=\"d1753fb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"608\" height=\"146\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_1.jpg\" class=\"attachment-large size-large wp-image-5164\" alt=\"Click On Grant Admin Consent\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_1.jpg 608w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_1-300x72.jpg 300w\" sizes=\"(max-width: 608px) 100vw, 608px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-822414d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"822414d\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5ff917c\" data-id=\"5ff917c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2027f7f elementor-widget elementor-widget-text-editor\" data-id=\"2027f7f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Go to the <\/span><b>Certifications &amp; secrets<\/b><span style=\"font-weight: 400;\"> blade. Select <\/span><b>Client Secrets<\/b><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-de6d808 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"de6d808\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ef128d1\" data-id=\"ef128d1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c22407e elementor-widget elementor-widget-image\" data-id=\"c22407e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"169\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_3.jpg\" class=\"attachment-large size-large wp-image-5165\" alt=\"Select Client Secrets\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_3.jpg 615w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_3-300x82.jpg 300w\" sizes=\"(max-width: 615px) 100vw, 615px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-61fb8fb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"61fb8fb\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e1e143f\" data-id=\"e1e143f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2c346d5 elementor-widget elementor-widget-text-editor\" data-id=\"2c346d5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click on<\/span><b> New client secret<\/b><span style=\"font-weight: 400;\">, assign a name and define an expiration policy<\/span><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b1a9b61 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b1a9b61\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-81f3ad4\" data-id=\"81f3ad4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fb806d9 elementor-widget elementor-widget-image\" data-id=\"fb806d9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"127\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/unnamed-26.png\" class=\"attachment-large size-large wp-image-5166\" alt=\"Click on New client secret\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/unnamed-26.png 512w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/unnamed-26-300x74.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8a92c3a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8a92c3a\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-df5955e\" data-id=\"df5955e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4a27f03 elementor-widget elementor-widget-text-editor\" data-id=\"4a27f03\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Once it\u2019s added, make sure to copy the text under \u201cValue\u201d and store it somewhere safe.<\/span><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-fb8c836 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"fb8c836\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-675ca73\" data-id=\"675ca73\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6bdffbe elementor-widget elementor-widget-image\" data-id=\"6bdffbe\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"779\" height=\"118\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_11.jpg\" class=\"attachment-large size-large wp-image-5173\" alt=\"Copy The Text Under \u201cValue\u201d\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_11.jpg 779w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_11-300x45.jpg 300w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_11-768x116.jpg 768w\" sizes=\"(max-width: 779px) 100vw, 779px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d05fbee elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d05fbee\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-63eaa8f\" data-id=\"63eaa8f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-faff209 elementor-widget elementor-widget-text-editor\" data-id=\"faff209\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Now, go to the <\/span><b>Overview<\/b><span style=\"font-weight: 400;\"> tab and get your <\/span><b>tenant ID<\/b><span style=\"font-weight: 400;\"> and <\/span><b>client ID<\/b><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b25471c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b25471c\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c6c947b\" data-id=\"c6c947b\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5e7ca65 elementor-widget elementor-widget-image\" data-id=\"5e7ca65\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"324\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_12.jpg\" class=\"attachment-large size-large wp-image-5174\" alt=\"Go To The Overview Tab\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_12.jpg 820w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_12-300x119.jpg 300w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_12-768x303.jpg 768w\" sizes=\"(max-width: 820px) 100vw, 820px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1d412bf elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1d412bf\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1c41597\" data-id=\"1c41597\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b1e7076 elementor-widget elementor-widget-text-editor\" data-id=\"b1e7076\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">You should have the following values at this point:<\/span><\/p><p><b>Client secret<\/b><\/p><p><span style=\"font-weight: 400;\">KI68Q~nnY8FojDXub.s1bPnE.6oFeF49LX59Cbip<\/span><\/p><p><b>Client id<\/b><\/p><p><span style=\"font-weight: 400;\">a3def885-2bab-4e8f-8fb7-f47f7f2e9e22<\/span><\/p><p><b>tenant id<\/b><\/p><p><span style=\"font-weight: 400;\">3131a2ad-2e72-49aa-94fd-552b936e518c<\/span><\/p><h2><b>Obtain Site ID, Library ID (drive id) and folder ID (item ID) where your files will be stored<\/b><\/h2><p><span style=\"font-weight: 400;\">To upload files to <\/span><a href=\"https:\/\/en.wikipedia.org\/wiki\/SharePoint\" target=\"_blank\" rel=\"noopener\"><b>SharePoint<\/b><\/a><span style=\"font-weight: 400;\"> you need<\/span><\/p><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Which site you will upload to (site id)<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Which library (drive id)<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Which folder (item id)<\/span><\/li><\/ul><p><span style=\"font-weight: 400;\">We can use the Graph API or Power Automate to obtain these IDs. Below we are using Postman to get them.\u00a0<\/span><\/p><p><span style=\"font-weight: 400;\">Authentication for the Graph API works with a Bearer token.\u00a0<\/span><\/p><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">First, let\u2019s get the code. Use the same values we grabbed from step 1.\u00a0<\/span><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-811a647 elementor-widget elementor-widget-code-highlight\" data-id=\"811a647\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-markup line-numbers\">\n\t\t\t\t<code readonly class=\"language-markup\">\n\t\t\t\t\t<xmp>https:\/\/login.microsoftonline.com\/{tenant-id}\/oauth2\/v2.0\/token<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8d5b670 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8d5b670\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2596362\" data-id=\"2596362\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-03d6bd5 elementor-widget elementor-widget-image\" data-id=\"03d6bd5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"158\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/unnamed-27.png\" class=\"attachment-large size-large wp-image-5175\" alt=\"Login\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/unnamed-27.png 512w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/unnamed-27-300x93.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-08ad13f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"08ad13f\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-71c7fd1\" data-id=\"71c7fd1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ce017b6 elementor-widget elementor-widget-text-editor\" data-id=\"ce017b6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Get Site ID using below endpoint<\/span><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-83909dc elementor-widget elementor-widget-code-highlight\" data-id=\"83909dc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-markup line-numbers\">\n\t\t\t\t<code readonly class=\"language-markup\">\n\t\t\t\t\t<xmp>https:\/\/graph.microsoft.com\/v1.0\/sites\/<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0a92133 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0a92133\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c6ab592\" data-id=\"c6ab592\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c52b881 elementor-widget elementor-widget-image\" data-id=\"c52b881\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"789\" height=\"351\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_13.jpg\" class=\"attachment-large size-large wp-image-5176\" alt=\"Get Site ID\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_13.jpg 789w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_13-300x133.jpg 300w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_13-768x342.jpg 768w\" sizes=\"(max-width: 789px) 100vw, 789px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ac471f7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ac471f7\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3a4f708\" data-id=\"3a4f708\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-727f7bc elementor-widget elementor-widget-text-editor\" data-id=\"727f7bc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Now, let\u2019s obtain drive id by listing all libraries under the site.\u00a0<\/span><\/li><\/ul><p><span style=\"font-weight: 400;\">For our example, we will upload the files into a library called \u201cUpload Files Library\u201d<\/span><\/p><div id=\"seology-cta-2\">\t\t<div data-elementor-type=\"section\" data-elementor-id=\"7283\" class=\"elementor elementor-7283\" data-elementor-post-type=\"elementor_library\">\n\t\t\t<div class=\"elementor-element elementor-element-7e3f164 e-con-full e-flex e-con e-parent\" data-id=\"7e3f164\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"background_background\":\"classic\",\"jet_parallax_layout_list\":[]}'>\n\t\t<div class=\"elementor-element elementor-element-9078c9f e-con-full e-flex e-con e-child\" data-id=\"9078c9f\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t<div class=\"elementor-element elementor-element-7b99949 elementor-widget elementor-widget-heading\" data-id=\"7b99949\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">Is your business ready for automation?<\/p>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8e61db5 elementor-widget elementor-widget-heading\" data-id=\"8e61db5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">Automate processes with Microsoft Power Platform.<\/p>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-a578907 e-flex e-con-boxed e-con e-child\" data-id=\"a578907\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e8c827b elementor-view-stacked elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"e8c827b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<a class=\"elementor-icon\" href=\"#ctc_chat\">\n\t\t\t<i aria-hidden=\"true\" class=\"fab fa-whatsapp\"><\/i>\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d834237 elementor-view-stacked elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"d834237\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<a class=\"elementor-icon\" href=\"https:\/\/powergi.net\/de\/contact\/\">\n\t\t\t<i aria-hidden=\"true\" class=\"far fa-envelope\"><\/i>\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-43bf502 elementor-widget elementor-widget-code-highlight\" data-id=\"43bf502\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-markup line-numbers\">\n\t\t\t\t<code readonly class=\"language-markup\">\n\t\t\t\t\t<xmp>https:\/\/graph.microsoft.com\/v1.0\/sites\/{site-id}\/drives\/<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9c6da80 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9c6da80\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c129c56\" data-id=\"c129c56\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b6e58fd elementor-widget elementor-widget-image\" data-id=\"b6e58fd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"663\" height=\"413\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_14.jpg\" class=\"attachment-large size-large wp-image-5177\" alt=\"Obtain Drive ID\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_14.jpg 663w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_14-300x187.jpg 300w\" sizes=\"(max-width: 663px) 100vw, 663px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f68a0f6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f68a0f6\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8b26825\" data-id=\"8b26825\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-080c197 elementor-widget elementor-widget-text-editor\" data-id=\"080c197\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Finally, let\u2019s obtain the folder item ID where we will upload files. In this case, we will upload to folder \u201cPDF Files\u201d\u00a0<\/span><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-cca13b9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"cca13b9\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-616a774\" data-id=\"616a774\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0278535 elementor-widget elementor-widget-image\" data-id=\"0278535\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"632\" height=\"130\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_15.jpg\" class=\"attachment-large size-large wp-image-5178\" alt=\"Upload To Folder \u201cPdf Files\u201d\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_15.jpg 632w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_15-300x62.jpg 300w\" sizes=\"(max-width: 632px) 100vw, 632px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-670e4a7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"670e4a7\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-993d134\" data-id=\"993d134\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2c83fed elementor-widget elementor-widget-code-highlight\" data-id=\"2c83fed\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-markup line-numbers\">\n\t\t\t\t<code readonly class=\"language-markup\">\n\t\t\t\t\t<xmp>https:\/\/graph.microsoft.com\/v1.0\/sites\/{site-id}\/drives\/{drive-id}\/root\/children<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-00dae49 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"00dae49\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1d305bc\" data-id=\"1d305bc\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fe9f27c elementor-widget elementor-widget-image\" data-id=\"fe9f27c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"610\" height=\"433\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_17.jpg\" class=\"attachment-large size-large wp-image-5179\" alt=\"Upload To Folder \u201cPdf Files\u201d\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_17.jpg 610w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/Screenshot_17-300x213.jpg 300w\" sizes=\"(max-width: 610px) 100vw, 610px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b7aff3b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b7aff3b\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a29e9a3\" data-id=\"a29e9a3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fe8a23d elementor-widget elementor-widget-text-editor\" data-id=\"fe8a23d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">We now have everything we need to create our function!<\/span><\/p><p>To truly enhance your business\u2019s capabilities with streamlined solutions, our <a href=\"https:\/\/powergi.net\/microsoft-power-platform-consulting-services\/\"><strong>Power Platform Consulting services<\/strong><\/a> are designed to seamlessly integrate Power Automate and SharePoint processes. Enlist the expertise of our dedicated team to transform automation opportunities into tangible, efficient workflows that drive success.<\/p><p>\u00a0<\/p><h2><b>Create your function code in Visual Studio<\/b><\/h2><p><span style=\"font-weight: 400;\">First, create an azure function project and use the HTTP Trigger<\/span><\/p><p><span style=\"font-weight: 400;\">Now, let\u2019s write some code. We need a function to authenticate and connect to SharePoint.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-13ea703 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"13ea703\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4fc0795\" data-id=\"4fc0795\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bd7123f elementor-widget elementor-widget-code-highlight\" data-id=\"bd7123f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-csharp line-numbers\">\n\t\t\t\t<code readonly class=\"language-csharp\">\n\t\t\t\t\t<xmp>    private static async Task<string> GetAccessToken()\r\n\r\n    {\r\n\r\n        \/\/ Azure App registration details\r\n\r\n        string clientId = \"a3def885-2bab-4e8f-8fb7-f47f7f2e9e22\";\r\n\r\n        string clientSecret = \"KI68Q~nnY8FojDXub.s1bPnE.6oFeF49LX59Cbip\";\r\n\r\n        \/\/ login url - replace 3131a2ad-2e72-49aa-94fd-552b936e518c by your tenant ID\r\n\r\n        string authority = \"https:\/\/login.microsoftonline.com\/3131a2ad-2e72-49aa-94fd-552b936e518c\/oauth2\/v2.0\/token\";\r\n\r\n        string resource = \"https:\/\/graph.microsoft.com\/.default\";\r\n\r\n        \/\/ Get access token\r\n\r\n        var clientCredentials = new Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential(clientId, clientSecret);\r\n\r\n        var cca = ConfidentialClientApplicationBuilder\r\n\r\n            .Create(clientId)\r\n\r\n            .WithClientSecret(clientSecret)\r\n\r\n            .WithAuthority(new Uri(authority))\r\n\r\n            .Build();\r\n\r\n        var result = await cca.AcquireTokenForClient(new[] { resource })\r\n\r\n            .ExecuteAsync();\r\n\r\n        return result.AccessToken;\r\n\r\n    }\r\n\r\nWe need the following variables in our doe\r\n\r\n\/\/ Get Query parameters\r\n\r\n        string url = req.RequestUri.ParseQueryString()[\"url\"];\r\n\r\n        string fileName = req.RequestUri.ParseQueryString()[\"fileName\"];\r\n\r\n        \r\n\r\n        \/\/ Site, Drive and Folder files will be uploaded to\r\n\r\n        string siteID = \"wearepowergi.SharePoint.com,c2ce9ca8-038c-46e7-9440-db1424939b13,282fa06a-5334-4abb-a089-75dbbe2664f4\";\r\n\r\n        string driveID = \"b!qJzOwowD50aUQNsUJJObE2qgLyg0U7tKoIl1274mZPTpI8MqmbRXRoFGWf9LCutP\";\r\n\r\n        string parentID = \"017XKR7NA7ULDT3MDJINEL6MLJW56AEFWG\";\r\n\r\n        \/\/ variable to get file content \r\n\r\n        byte[] fileBytes;\r\n\r\nCode to extract file content from URL and upload to SharePoint\r\n\r\n        using (HttpClient client = new HttpClient())\r\n\r\n        {\r\n\r\n            try\r\n\r\n            {\r\n\r\n                \/\/get file fom URL and assign to variable\r\n\r\n                client.Timeout = TimeSpan.FromMinutes(3);\r\n\r\n                fileBytes = await client.GetByteArrayAsync(url);\r\n\r\n                log.LogInformation($\"Downloaded bytes: {fileBytes.Length}\");\r\n\r\n            }\r\n\r\n            catch (Exception ex)\r\n\r\n            {\r\n\r\n                \/\/if any error happens\r\n\r\n                log.LogError($\"Error: {ex.Message}\");\r\n\r\n                log.LogError($\"Error: {ex.Data}\");\r\n\r\n                log.LogError($\"Error: {ex.Source}\");\r\n\r\n                return new StatusCodeResult((int)HttpStatusCode.InternalServerError);\r\n\r\n            }\r\n\r\n        }\r\n\r\n        \/\/ Checks if content is not empty\r\n\r\n        if (fileBytes == null || fileBytes.Length == 0)\r\n\r\n        {\r\n\r\n            log.LogError(\"File content is empty\");\r\n\r\n            return new BadRequestObjectResult(\"File content is empry.\");\r\n\r\n        }\r\n\r\n        \/\/ endpoint and SharePoint link\r\n\r\n        string SharePointUrl = $\"https:\/\/graph.microsoft.com\/v1.0\/sites\/{siteID}\/drives\/{driveID}\/items\/{parentID}:\/{fileName}:\/content\";\r\n\r\n        \/\/call GetAccessToken to obtain access token\r\n\r\n        string accessToken = await GetAccessToken();\r\n\r\n        using (HttpClient client = new HttpClient())\r\n\r\n        {\r\n\r\n            \/\/start call to graph API\r\n\r\n            client.Timeout = TimeSpan.FromMinutes(20);\r\n\r\n            \/\/ Set Authorization header\r\n\r\n            client.DefaultRequestHeaders.Add(\"Authorization\", $\"Bearer {accessToken}\");\r\n\r\n            \/\/ Add file content to request body\r\n\r\n            ByteArrayContent content = new ByteArrayContent(fileBytes);\r\n\r\n            \/\/ set headers\r\n\r\n            content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue(\"text\/plain\");\r\n\r\n            \/\/ call graph API, with all correspondin parameters\r\n\r\n            HttpResponseMessage response = await client.PutAsync(SharePointUrl, content);\r\n\r\n            response.EnsureSuccessStatusCode();\r\n\r\n        }\r\n\r\n        log.LogInformation(\"File downloaded and stored in SharePoint\");\r\n\r\n        return new OkObjectResult(\"File downloaded and stored in SharePoint\");\r\n\r\nFinal code should look like this\r\n\r\nusing System;\r\n\r\nusing System.Net;\r\n\r\nusing System.Net.Http;\r\n\r\nusing System.Threading.Tasks;\r\n\r\nusing Microsoft.AspNetCore.Mvc;\r\n\r\nusing Microsoft.Azure.WebJobs;\r\n\r\nusing Microsoft.Azure.WebJobs.Extensions.Http;\r\n\r\nusing Microsoft.Extensions.Logging;\r\n\r\nusing Microsoft.Identity.Client;\r\n\r\npublic static class DownloadAndUploadFunction\r\n\r\n{\r\n\r\n    [FunctionName(\"DownloadAndUploadFunction\")]\r\n\r\n    public static async Task<iactionresult> Run(\r\n\r\n        [HttpTrigger(AuthorizationLevel.Function, \"get\", \"post\", Route = null)]\r\n\r\n        HttpRequestMessage req,\r\n\r\n        ILogger log)\r\n\r\n    {\r\n\r\n       \r\n\r\n        \/\/ Get Query parameters\r\n\r\n        string url = req.RequestUri.ParseQueryString()[\"url\"];\r\n\r\n        string fileName = req.RequestUri.ParseQueryString()[\"fileName\"];\r\n\r\n     \r\n\r\n        \/\/ Site, Drive and Folder files will be uploaded to\r\n\r\n        string siteID = \"wearepowergi.SharePoint.com,c2ce9ca8-038c-46e7-9440-db1424939b13,282fa06a-5334-4abb-a089-75dbbe2664f4\";\r\n\r\n        string driveID = \"b!qJzOwowD50aUQNsUJJObE2qgLyg0U7tKoIl1274mZPTpI8MqmbRXRoFGWf9LCutP\";\r\n\r\n        string parentID = \"017XKR7NA7ULDT3MDJINEL6MLJW56AEFWG\";\r\n\r\n        \/\/ variable to get file content \r\n\r\n        byte[] fileBytes;\r\n\r\n        using (HttpClient client = new HttpClient())\r\n\r\n        {\r\n\r\n            try\r\n\r\n            {\r\n\r\n                \/\/get file fom URL and assign to variable\r\n\r\n                client.Timeout = TimeSpan.FromMinutes(3);\r\n\r\n                fileBytes = await client.GetByteArrayAsync(url);\r\n\r\n                log.LogInformation($\"Downloaded bytes: {fileBytes.Length}\");\r\n\r\n            }\r\n\r\n            catch (Exception ex)\r\n\r\n            {\r\n\r\n                \/\/if any error happens\r\n\r\n                log.LogError($\"Error: {ex.Message}\");\r\n\r\n                log.LogError($\"Error: {ex.Data}\");\r\n\r\n                log.LogError($\"Error: {ex.Source}\");\r\n\r\n                return new StatusCodeResult((int)HttpStatusCode.InternalServerError);\r\n\r\n            }\r\n\r\n        }\r\n\r\n        \/\/ Checks if content is not empty\r\n\r\n        if (fileBytes == null || fileBytes.Length == 0)\r\n\r\n        {\r\n\r\n            log.LogError(\"El contenido del archivo es nulo o vac\u00edo. No se realizar\u00e1 la carga en SharePoint.\");\r\n\r\n            return new BadRequestObjectResult(\"El contenido del archivo es nulo o vac\u00edo. No se realizar\u00e1 la carga en SharePoint.\");\r\n\r\n        }\r\n\r\n        \/\/ endpoint and SharePoint link\r\n\r\n        string SharePointUrl = $\"https:\/\/graph.microsoft.com\/v1.0\/sites\/{siteID}\/drives\/{driveID}\/items\/{parentID}:\/{fileName}:\/content\";\r\n\r\n        \/\/call GetAccessToken to obtain access token\r\n\r\n        string accessToken = await GetAccessToken();\r\n\r\n        using (HttpClient client = new HttpClient())\r\n\r\n        {\r\n\r\n            \/\/start call to graph API\r\n\r\n            client.Timeout = TimeSpan.FromMinutes(20);\r\n\r\n            \/\/ Set Authorization header\r\n\r\n            client.DefaultRequestHeaders.Add(\"Authorization\", $\"Bearer {accessToken}\");\r\n\r\n            \/\/ Add file content to request body\r\n\r\n            ByteArrayContent content = new ByteArrayContent(fileBytes);\r\n\r\n            \/\/ set headers\r\n\r\n            content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue(\"text\/plain\");\r\n\r\n            \/\/ call graph API, with all correspondin parameters\r\n\r\n            HttpResponseMessage response = await client.PutAsync(SharePointUrl, content);\r\n\r\n            response.EnsureSuccessStatusCode();\r\n\r\n        }\r\n\r\n        log.LogInformation(\"File downloaded and stored in SharePoint\");\r\n\r\n        return new OkObjectResult(\"File downloaded and stored in SharePoint\");\r\n\r\n    }\r\n\r\n    private static async Task<string> GetAccessToken()\r\n\r\n    {\r\n\r\n        \/\/ Azure App registration details\r\n\r\n        string clientId = \"a3def885-2bab-4e8f-8fb7-f47f7f2e9e22\";\r\n\r\n        string clientSecret = \"KI68Q~nnY8FojDXub.s1bPnE.6oFeF49LX59Cbip\";\r\n\r\n        \/\/ login url - replace 3131a2ad-2e72-49aa-94fd-552b936e518c by yout tenant ID\r\n\r\n        string authority = \"https:\/\/login.microsoftonline.com\/3131a2ad-2e72-49aa-94fd-552b936e518c\/oauth2\/v2.0\/token\";\r\n\r\n        string resource = \"https:\/\/graph.microsoft.com\/.default\";\r\n\r\n        \/\/ Get access token\r\n\r\n        var clientCredentials = new Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential(clientId, clientSecret);\r\n\r\n        var cca = ConfidentialClientApplicationBuilder\r\n\r\n            .Create(clientId)\r\n\r\n            .WithClientSecret(clientSecret)\r\n\r\n            .WithAuthority(new Uri(authority))\r\n\r\n            .Build();\r\n\r\n        var result = await cca.AcquireTokenForClient(new[] { resource })\r\n\r\n            .ExecuteAsync();\r\n\r\n        return result.AccessToken;\r\n\r\n    }\r\n\r\n}<\/string><\/iactionresult><\/string><\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b0558b2 elementor-widget elementor-widget-text-editor\" data-id=\"b0558b2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2 style=\"font-style: normal;\"><span style=\"font-weight: bold;\">Create Function App in the Azure portal and publish your code.<\/span><\/h2><p style=\"font-size: 15px; font-style: normal; font-weight: 400;\">Create the resource in Azure for the Azure Function. Below is an example how to set up the resource<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f71d5d5 elementor-widget elementor-widget-image\" data-id=\"f71d5d5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"465\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/unnamed-28.png\" class=\"attachment-large size-large wp-image-5180\" alt=\"Create the resource in Azure for the Azure Function\" srcset=\"https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/unnamed-28.png 512w, https:\/\/powergi.net\/wp-content\/uploads\/2024\/01\/unnamed-28-300x272.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c306084 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c306084\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-923f828\" data-id=\"923f828\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f25f4b4 elementor-widget elementor-widget-text-editor\" data-id=\"f25f4b4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\n\nNow it\u2019s time to Publish our Function to the Azure service. Right click on your solution and select the \u201cPublish\u201d option.<br>\nFollow the instructions in the next screens, once you reach the\u00a0<span style=\"font-weight: bold;\">Service Dependencies\u00a0<\/span>section, make sure that you select the\u00a0<span style=\"font-weight: bold;\">storage account where your PDF documents to merge are saved<\/span>. Also, double check that the right container name is used in the connection string.<br>\n<br>In below screenshot you can see how I selected\u00a0<span style=\"font-weight: bold;\"><em>storageaccountazure8721\u00a0<\/em><\/span>as the one that contains my \u201c<span style=\"font-weight: bold;\"><em>temp-pdf<\/em><\/span>\u201d container. Note that this container can be the same where your Function is storing its files or it can a completely different.\n\n<figure class=\"wp-block-image size-large\" style=\"font-size: 15px; font-style: normal; font-weight: 400; color: #7a7a7a;\"><img decoding=\"async\" class=\"wp-image-518\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/07\/image-5-1024x340-1.webp\" alt=\"\"><\/figure>\n<figure class=\"wp-block-image size-large\" style=\"font-size: 15px; font-style: normal; font-weight: 400; color: #7a7a7a;\"><img decoding=\"async\" class=\"wp-image-519\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2021\/04\/image-6.png\" alt=\"\">\n\n\n\n\n<figcaption>Make sure that the container name in the connection string exists in the Storage account you select in the dependency \u2013 in this case \u201ctemp-pdf\u201d<\/figcaption><\/figure>\nClick publish and wait for the success confirmation from Visual Studio.\n<span style=\"font-weight: 400;\">Now you can call your function using the function endpoint and the query parameters!<\/span>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>This blog will show step by step how to create an Azure Function App to upload files to SharePoint using C#. This code will receive a public URL that contains a file to download, and we will upload this file to SharePoint, using the Graph API &#8211; and by the way, this function was created [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":5209,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"glossary_letter":"","footnotes":""},"categories":[118,32],"tags":[121,122,120],"class_list":["post-5151","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sharepoint-cat","category-azure-cat","tag-azure-function-app","tag-azure-functions-scenarios","tag-sharepoint"],"glossary_letter":null,"rank_math_title":"Azure Function App | SharePoint | Power GI","rank_math_description":"Learn how to create an Azure Function App for easy file uploads to SharePoint from public URLs, code created by Power GI. Visit us!","rank_math_focus_keyword":"Azure Function App","_links":{"self":[{"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/posts\/5151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/comments?post=5151"}],"version-history":[{"count":0,"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/posts\/5151\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/media\/5209"}],"wp:attachment":[{"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/media?parent=5151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/categories?post=5151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/tags?post=5151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}