{"id":8965,"date":"2020-08-05T14:08:12","date_gmt":"2020-08-05T14:08:12","guid":{"rendered":"https:\/\/zappysys.com\/blog\/?p=8965"},"modified":"2025-03-18T13:45:38","modified_gmt":"2025-03-18T13:45:38","slug":"call-onedrive-api-ssis-file-upload-download-delete","status":"publish","type":"post","link":"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/","title":{"rendered":"How to call OneDrive API in SSIS (Upload, Download)"},"content":{"rendered":"<h2>Introduction<\/h2>\n<div class=\"su-note\"  style=\"border-color:#e5de9d;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFF8B7;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><strong>UPDATE:<\/strong>\u00a0ZappySys has released a brand new <a href=\"https:\/\/zappysys.com\/api\/integration-hub\/onedrive-connector\/\">API Connector for OneDrive<\/a> which makes it much simpler to\u00a0<strong>Read\/Write OneDrive Data in SSIS<\/strong> compared to the steps listed in this article. You can still use steps from this article but if you are new to API or want to avoid learning curve with API then use newer approach.<\/p>\n<p>Please visit <a href=\"https:\/\/zappysys.com\/api\/integration-hub\/\">this page to see all<\/a>\u00a0Pre-Configured ready to use API connectors which you can use in <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-api-source\/\">SSIS API Source<\/a> \/ <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-api-destination\/\">SSIS API Destination<\/a> OR\u00a0<a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/odbc-api-driver\/\">API ODBC Driver<\/a> (for non-SSIS Apps such as Excel, Power BI, Informatica).<br \/>\n<\/div><\/div>\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/microsoft-onedrive-logo.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9115 alignleft\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/microsoft-onedrive-logo.png\" alt=\"\" width=\"161\" height=\"119\" \/><\/a><a href=\"https:\/\/developer.microsoft.com\/en-us\/graph\/docs\/concepts\/overview\" target=\"_blank\" rel=\"noopener\">Microsoft Graph API<\/a>\u00a0is a unified way to access many Microsoft services API including <strong>OneDrive API<\/strong>. In our previous blog post we saw <a href=\"https:\/\/zappysys.com\/blog\/calling-office-365-api-using-ssis-graph-api-mail-calendar-contacts-onedrive-excel\/\" target=\"_blank\" rel=\"noopener\">how to call Office 365 API Graph API<\/a>. In this post, you will focus on how to access OneDrive API in SSIS and use REST API Task or connector like\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-json-file-source\/\" target=\"_blank\" rel=\"noopener\">SSIS JSON \/ REST API Source Connector<\/a>\u00a0to load Read \/ Download \/ Upload data from OneDrive.<\/p>\n<p>OneDrive allows to store files on the cloud and and we have seen growing requirements in downloading\/Uploading files from there. This post will provide step by step details of how to Upload\/Download files from OneDrive.<\/p>\n<div class=\"content_block\" id=\"custom_post_widget-2523\"><h2><span id=\"Prerequisites\">Prerequisites<\/span><\/h2>\r\nBefore we perform the steps listed in this article, you will need to make sure the following prerequisites are met:\r\n<ol style=\"margin-left: 1.5em;\">\r\n \t<li><abbr title=\"SQL Server Integration Services\">SSIS<\/abbr> designer installed.\u00a0Sometimes it is referred to as <abbr title=\"Business Intelligence Development Studio\">BIDS<\/abbr> or <abbr title=\"SQL Server Data Tools\">SSDT<\/abbr> (<a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/ssdt\/download-sql-server-data-tools-ssdt\" target=\"_blank\" rel=\"noopener\">download it from the Microsoft site<\/a>).<\/li>\r\n \t<li>Basic knowledge of SSIS package\u00a0development using\u00a0<em>Microsoft SQL Server Integration Services<\/em>.<\/li>\r\n \t<li>Make sure\u00a0<span style=\"text-decoration: underline;\"><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\" target=\"_blank\" rel=\"noopener\">ZappySys SSIS PowerPack<\/a><\/span>\u00a0is installed (<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/download\/\" target=\"_blank\" rel=\"noopener\">download it<\/a>, if you haven't already).<\/li>\r\n \t<li>(<em>Optional step<\/em>)<em>.<\/em>\u00a0<a href=\"https:\/\/zappysys.zendesk.com\/hc\/en-us\/articles\/360035974593\" target=\"_blank\" rel=\"noopener\">Read this article<\/a>, if you are planning to deploy packages to a server and schedule their execution later.<\/li>\r\n<\/ol><\/div>\n<h2>Register Microsoft App for OAuth Authentication<\/h2>\n<p>In this section, you will learn how to register a custom app in Microsoft Azure portal that will allow access to the OneDrive. So, let&#8217;s get started &#8211;<\/p>\n<ol>\n<li>Log into <a href=\"https:\/\/portal.azure.com\/#blade\/Microsoft_AAD_IAM\/ActiveDirectoryMenuBlade\/RegisteredApps\">Microsoft Azure portal<\/a> to register a custom app.<\/li>\n<li>Register a new application by clicking New Registration link.\n<div id=\"attachment_9034\" style=\"width: 758px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/NewRegistration.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9034\" class=\"size-full wp-image-9034\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/NewRegistration.png\" alt=\"New App Registration in Azure portal\" width=\"748\" height=\"221\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/NewRegistration.png 748w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/NewRegistration-300x89.png 300w\" sizes=\"(max-width: 748px) 100vw, 748px\" \/><\/a><p id=\"caption-attachment-9034\" class=\"wp-caption-text\">New App Registration in Azure portal<\/p><\/div><\/li>\n<li>Provide the name of the custom app and who can access the app in the organization.\n<div id=\"attachment_9005\" style=\"width: 620px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/RegisterOneDriveApp-1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9005\" class=\"wp-image-9005 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/RegisterOneDriveApp-1.jpg\" alt=\"Register an OneDrive App\" width=\"610\" height=\"518\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/RegisterOneDriveApp-1.jpg 610w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/RegisterOneDriveApp-1-300x255.jpg 300w\" sizes=\"(max-width: 610px) 100vw, 610px\" \/><\/a><p id=\"caption-attachment-9005\" class=\"wp-caption-text\">Register an OneDrive App<\/p><\/div><\/li>\n<li>Go to the App overview and add a Redirect URL.\n<div id=\"attachment_9044\" style=\"width: 947px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/RedirectURI-1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9044\" class=\"wp-image-9044 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/RedirectURI-1.jpg\" alt=\"Add a Redirect URL\" width=\"937\" height=\"122\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/RedirectURI-1.jpg 937w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/RedirectURI-1-300x39.jpg 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/RedirectURI-1-768x100.jpg 768w\" sizes=\"(max-width: 937px) 100vw, 937px\" \/><\/a><p id=\"caption-attachment-9044\" class=\"wp-caption-text\">Add a Redirect URL<\/p><\/div><\/li>\n<li>Click on &#8220;Add a Platform&#8221; under Platform Configuration section and then select &#8220;Web&#8221; under Web applications section to enter a Redirect URL.\n<pre class=\"lang:default decode:true\">https:\/\/zappysys.com\/oauth<\/pre>\n<div id=\"attachment_9007\" style=\"width: 476px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/RedirectURI2.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9007\" class=\"size-full wp-image-9007\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/RedirectURI2.jpg\" alt=\"Redirect URL\" width=\"466\" height=\"564\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/RedirectURI2.jpg 466w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/RedirectURI2-248x300.jpg 248w\" sizes=\"(max-width: 466px) 100vw, 466px\" \/><\/a><p id=\"caption-attachment-9007\" class=\"wp-caption-text\">Redirect URL<\/p><\/div><\/li>\n<li>Create a Client Secret key which will be used to Authenticate the custom Azure app.\n<div id=\"attachment_9010\" style=\"width: 586px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/ClientSecret.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9010\" class=\"size-full wp-image-9010\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/ClientSecret.jpg\" alt=\"Add a Client Secret\" width=\"576\" height=\"403\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/ClientSecret.jpg 576w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/ClientSecret-300x210.jpg 300w\" sizes=\"(max-width: 576px) 100vw, 576px\" \/><\/a><p id=\"caption-attachment-9010\" class=\"wp-caption-text\">Add a Client Secret<\/p><\/div>\n<div id=\"attachment_9011\" style=\"width: 218px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/ClientSecret2.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9011\" class=\"size-full wp-image-9011\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/ClientSecret2.jpg\" alt=\"Secret Key Expiration Period\" width=\"208\" height=\"259\" \/><\/a><p id=\"caption-attachment-9011\" class=\"wp-caption-text\">Secret Key Expiration Period<\/p><\/div>\n<div id=\"attachment_9012\" style=\"width: 1034px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/ClientSecret3.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9012\" class=\"size-full wp-image-9012\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/ClientSecret3.jpg\" alt=\"Specify Secret Key\" width=\"1024\" height=\"176\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/ClientSecret3.jpg 1024w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/ClientSecret3-300x52.jpg 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/ClientSecret3-768x132.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-9012\" class=\"wp-caption-text\">Specify Secret Key<\/p><\/div>\n<div><div class=\"su-note\"  style=\"border-color:#e5de9d;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#fff8b7;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><strong>Note<\/strong> &#8211; Take a note of <strong>Client Secret<\/strong>, it will be required while configuring OAuth connection in the SSIS later.<\/div><\/div><\/div>\n<\/li>\n<li>Add API Permissions for OneDrive API.\n<div id=\"attachment_10198\" style=\"width: 1301px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/APIPermissions1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-10198\" class=\"wp-image-10198 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/APIPermissions1.jpg\" alt=\"OneDrive API Permissions\" width=\"1291\" height=\"415\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/APIPermissions1.jpg 1291w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/APIPermissions1-300x96.jpg 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/APIPermissions1-768x247.jpg 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/APIPermissions1-1024x329.jpg 1024w\" sizes=\"(max-width: 1291px) 100vw, 1291px\" \/><\/a><p id=\"caption-attachment-10198\" class=\"wp-caption-text\">OneDrive API Permissions<\/p><\/div><\/li>\n<li>Select the following permissions from the Delegated Permissions section.\n<pre class=\"lang:default decode:true\">User.ReadBasic.All\r\nFiles.Read\r\noffline_access<\/pre>\n<div id=\"attachment_9009\" style=\"width: 522px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/APIPermissions2.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9009\" class=\"size-full wp-image-9009\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/APIPermissions2.jpg\" alt=\"Select Delegated Permissions\" width=\"512\" height=\"571\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/APIPermissions2.jpg 512w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/APIPermissions2-269x300.jpg 269w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/a><p id=\"caption-attachment-9009\" class=\"wp-caption-text\">Select Delegated Permissions<\/p><\/div><\/li>\n<li>Take note of Client ID, it will be required while configuring OAuth connection in the SSIS later.\n<div id=\"attachment_10199\" style=\"width: 820px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/ClientSecret41.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-10199\" class=\"wp-image-10199 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/ClientSecret41.jpg\" alt=\"Client ID\" width=\"810\" height=\"274\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/ClientSecret41.jpg 810w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/ClientSecret41-300x101.jpg 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/ClientSecret41-768x260.jpg 768w\" sizes=\"(max-width: 810px) 100vw, 810px\" \/><\/a><p id=\"caption-attachment-10199\" class=\"wp-caption-text\">Client ID<\/p><\/div><\/li>\n<\/ol>\n<h2>Get OneDrive File ID<\/h2>\n<p>In this section, you will learn how to get the File ID of the CSV file through OneDrive API. So, let&#8217;s get started &#8211;<\/p>\n<ol>\n<li>Go to the\u00a0<a href=\"https:\/\/developer.microsoft.com\/en-us\/graph\/graph-explorer\">Microsoft Graph Explorer<\/a>.<\/li>\n<li>Sign in to Graph Explorer.\n<div id=\"attachment_9153\" style=\"width: 489px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/ssis-GraphExplorer-2.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9153\" class=\"wp-image-9153 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/ssis-GraphExplorer-2.jpg\" alt=\"SSIS GraphExplorer SignIn\" width=\"479\" height=\"388\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/ssis-GraphExplorer-2.jpg 479w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/ssis-GraphExplorer-2-300x243.jpg 300w\" sizes=\"(max-width: 479px) 100vw, 479px\" \/><\/a><p id=\"caption-attachment-9153\" class=\"wp-caption-text\">SSIS GraphExplorer SignIn<\/p><\/div><\/li>\n<li>Run below OneDrive API to get a list of the files from the OneDrive.\n<pre class=\"lang:default decode:true\">https:\/\/graph.microsoft.com\/v1.0\/me\/drive\/root\/children<\/pre>\n<div id=\"attachment_9048\" style=\"width: 1003px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/GraphExplorer-1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9048\" class=\"size-full wp-image-9048\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/GraphExplorer-1.jpg\" alt=\"Microsoft Graph Explorer\" width=\"993\" height=\"509\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/GraphExplorer-1.jpg 993w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/GraphExplorer-1-300x154.jpg 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/GraphExplorer-1-768x394.jpg 768w\" sizes=\"(max-width: 993px) 100vw, 993px\" \/><\/a><p id=\"caption-attachment-9048\" class=\"wp-caption-text\">Microsoft Graph Explorer<\/p><\/div>\n<div><div class=\"su-note\"  style=\"border-color:#e5de9d;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#fff8b7;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><strong>NOTE:<\/strong>\u00a0Take a note of <strong>File ID<\/strong> of the CSV file. For this example, we will download invoices.csv file.<\/div><\/div><\/div>\n<\/li>\n<\/ol>\n<h2>Create OAuth Connection in SSIS<\/h2>\n<p>In this section, you will learn how to create an OAuth connection in SSIS to an Azure custom app. So, let&#8217;s get started &#8211;<\/p>\n<ol>\n<li>Create a new ZS-OAuth connection in SSIS.\n<div id=\"attachment_9015\" style=\"width: 486px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9015\" class=\"size-full wp-image-9015\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth.jpg\" alt=\"ZappySys OAuth Connection in SSIS\" width=\"476\" height=\"445\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth.jpg 476w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth-300x280.jpg 300w\" sizes=\"(max-width: 476px) 100vw, 476px\" \/><\/a><p id=\"caption-attachment-9015\" class=\"wp-caption-text\">ZappySys OAuth Connection in SSIS<\/p><\/div><\/li>\n<li>Configure OAuth connection with following settings.\n<div>\n<div><\/div>\n<\/div>\n<div class=\"su-table su-table-alternate\">\n<table style=\"width: 100%;border-collapse: collapse;border-style: solid;border-color: #dedede\" border=\"1\">\n<tbody>\n<tr style=\"height: 21px\">\n<td style=\"width: 23.0015%;height: 21px\"><span style=\"font-size: 10pt\">Client ID<\/span><\/td>\n<td style=\"width: 76.9985%\"><span style=\"font-size: 10pt\">Provide Client ID from App Registration steps<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 23.0015%\"><span style=\"font-size: 10pt\">Client Secret<\/span><\/td>\n<td style=\"width: 76.9985%\"><span style=\"font-size: 10pt\">Provide Client Secret from App Registration steps<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 23.0015%\"><span style=\"font-size: 10pt\">Authorization URL<\/span><\/td>\n<td style=\"width: 76.9985%\"><span style=\"font-size: 10pt\">https:\/\/login.microsoftonline.com\/organizations\/oauth2\/v2.0\/authorize<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 23.0015%\"><span style=\"font-size: 10pt\">Access Token URL<\/span><\/td>\n<td style=\"width: 76.9985%\"><span style=\"font-size: 10pt\">https:\/\/login.microsoftonline.com\/organizations\/oauth2\/v2.0\/token<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 23.0015%\"><span style=\"font-size: 10pt\">Scope\/Permissions<\/span><\/td>\n<td style=\"width: 76.9985%\"><span style=\"font-size: 10pt\">User.ReadBasic.All<\/span><br \/>\n<span style=\"font-size: 10pt\">Files.Read.All<\/span><br \/>\n<span style=\"font-size: 10pt\">offline_access<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div id=\"attachment_9016\" style=\"width: 860px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth2.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9016\" class=\"wp-image-9016 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth2.jpg\" alt=\"OAuth Connection Configuration\" width=\"850\" height=\"653\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth2.jpg 850w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth2-300x230.jpg 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth2-768x590.jpg 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><p id=\"caption-attachment-9016\" class=\"wp-caption-text\">OAuth Connection Configuration<\/p><\/div><\/li>\n<li>Go to the Advanced tab and provide Return URL.\n<pre class=\"lang:default decode:true\">https:\/\/zappysys.com\/oauth<\/pre>\n<div id=\"attachment_9021\" style=\"width: 827px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth6.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9021\" class=\"size-full wp-image-9021\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth6.jpg\" alt=\"Add Redirect URL\" width=\"817\" height=\"197\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth6.jpg 817w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth6-300x72.jpg 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth6-768x185.jpg 768w\" sizes=\"(max-width: 817px) 100vw, 817px\" \/><\/a><p id=\"caption-attachment-9021\" class=\"wp-caption-text\">Add Redirect URL<\/p><\/div><\/li>\n<li>Click on Generate Token will give a login screen which will allow to generate access and refresh token for the app.<\/li>\n<li>Approve the requested permissions bu Accepting it.\n<div id=\"attachment_9018\" style=\"width: 638px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth4.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9018\" class=\"size-full wp-image-9018\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth4.jpg\" alt=\"Approve Permissions Requested\" width=\"628\" height=\"522\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth4.jpg 628w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth4-300x249.jpg 300w\" sizes=\"(max-width: 628px) 100vw, 628px\" \/><\/a><p id=\"caption-attachment-9018\" class=\"wp-caption-text\">Approve Permissions Requested<\/p><\/div><\/li>\n<li>Token has been generate successfully.\n<div id=\"attachment_9019\" style=\"width: 422px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth5.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9019\" class=\"wp-image-9019 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth5.jpg\" alt=\"Refresh Token Successful\" width=\"412\" height=\"315\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth5.jpg 412w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth5-300x229.jpg 300w\" sizes=\"(max-width: 412px) 100vw, 412px\" \/><\/a><p id=\"caption-attachment-9019\" class=\"wp-caption-text\">Refresh Token Successful<\/p><\/div><\/li>\n<li>Let&#8217;s test the connection to make sure it is working fine.\n<div id=\"attachment_9020\" style=\"width: 827px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth7.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9020\" class=\"wp-image-9020 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth7.jpg\" alt=\"Connection Successful\" width=\"817\" height=\"694\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth7.jpg 817w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth7-300x255.jpg 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/OAuth7-768x652.jpg 768w\" sizes=\"(max-width: 817px) 100vw, 817px\" \/><\/a><p id=\"caption-attachment-9020\" class=\"wp-caption-text\">Connection Successful<\/p><\/div><\/li>\n<\/ol>\n<h2>Download CSV File Through OneDrive REST API in SSIS<\/h2>\n<p>In this section, you will learn how to download a CSV file through OneDrive API in SSIS and save it into a CSV file.<\/p>\n<ol>\n<li>Here is the OneDrive API which allows to read content of the file.\n<pre class=\"lang:default decode:true\">https:\/\/graph.microsoft.com\/v1.0\/me\/drive\/Items\/&lt;File ID&gt;\/content<\/pre>\n<\/li>\n<li>Replace &lt;File ID&gt; in above step#1 with the file ID that we have got in the\u00a0<strong>Get OneDrive File ID<\/strong>\u00a0section.\u00a0Final URL will look something like below.\n<pre class=\"lang:default decode:true\">https:\/\/graph.microsoft.com\/v1.0\/me\/drive\/Items\/01W7L3VCUBS27ILUQKENAK4LQGGTJ2R3TT\/content<\/pre>\n<\/li>\n<li>Let&#8217;s create a SSIS package with Data Flow Task from SSIS Toolbox.<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/AddDataflow.png\"><img loading=\"lazy\" decoding=\"async\" width=\"516\" height=\"185\" class=\"size-full wp-image-9073\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/AddDataflow.png\" alt=\"&quot;&quot;\/content&lt;\/pre\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/AddDataflow.png 516w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/AddDataflow-300x108.png 300w\" sizes=\"(max-width: 516px) 100vw, 516px\" \/><\/a><\/li>\n<li>Replace &lt;File ID&gt; in above step#1 with the file ID that we have got in the\u00a0<strong>Get OneDrive File ID<\/strong>\u00a0section.\u00a0Final URL will look something like below.\n<pre class=\"lang:default decode:true\">https:\/\/graph.microsoft.com\/v1.0\/me\/drive\/Items\/01W7L3VCWMCGPYZLM2IRAYWROSH4XMQT7A\/content<\/pre>\n<\/li>\n<li>Configure REST API task as follows.\n<div id=\"attachment_9084\" style=\"width: 928px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/Download-Binary-File.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9084\" class=\"size-full wp-image-9084\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/Download-Binary-File.png\" alt=\"Binary File Configuration in ZappySys REST API Task\" width=\"918\" height=\"625\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/Download-Binary-File.png 918w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/Download-Binary-File-300x204.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/Download-Binary-File-768x523.png 768w\" sizes=\"(max-width: 918px) 100vw, 918px\" \/><\/a><p id=\"caption-attachment-9084\" class=\"wp-caption-text\">Binary File Configuration in ZappySys REST API Task<\/p><\/div><\/li>\n<li>Configure the responses setting as below.\n<div id=\"attachment_9083\" style=\"width: 696px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/Download-Binary-File2.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9083\" class=\"wp-image-9083 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/Download-Binary-File2.png\" alt=\"Binary File Configuration in ZappySys REST API Task\" width=\"686\" height=\"613\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/Download-Binary-File2.png 686w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/Download-Binary-File2-300x268.png 300w\" sizes=\"(max-width: 686px) 100vw, 686px\" \/><\/a><p id=\"caption-attachment-9083\" class=\"wp-caption-text\">Binary File Configuration in ZappySys REST API Task<\/p><\/div>\n<div class=\"su-note\"  style=\"border-color:#e5de9d;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#fff8b7;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><strong>NOTE<\/strong>: Ensure that the\u00a0<strong>Treat response as the binary<\/strong> checkbox is checked otherwise the file will be downloaded but corrupted as zip\/mp3 etc. file format is binary.<\/div><\/div><\/li>\n<li>Check if the request is made correctly by clicking Test Request\/Response.\n<div id=\"attachment_10201\" style=\"width: 622px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/Download-Binary-File3.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-10201\" class=\"wp-image-10201 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/Download-Binary-File3.png\" alt=\"Example of Testing the Request\" width=\"612\" height=\"621\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/Download-Binary-File3.png 612w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/Download-Binary-File3-296x300.png 296w\" sizes=\"(max-width: 612px) 100vw, 612px\" \/><\/a><p id=\"caption-attachment-10201\" class=\"wp-caption-text\">Example of Testing the Request<\/p><\/div><\/li>\n<li>Let&#8217;s have a look at the folder where the file has been downloaded. Here is an example &#8211;\n<div id=\"attachment_9082\" style=\"width: 894px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/DownloadedFileExample.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9082\" class=\"wp-image-9082 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/DownloadedFileExample.png\" alt=\"Downloaded File Example\" width=\"884\" height=\"128\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/DownloadedFileExample.png 884w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/DownloadedFileExample-300x43.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/DownloadedFileExample-768x111.png 768w\" sizes=\"(max-width: 884px) 100vw, 884px\" \/><\/a><p id=\"caption-attachment-9082\" class=\"wp-caption-text\">Downloaded File Example<\/p><\/div><\/li>\n<\/ol>\n<div class=\"mceTemp\"><\/div>\n<h2>Download a Text File Through OneDrive API in SSIS<\/h2>\n<p>Here is another technique that can be used to download a CSV\/text file through OneDrive API without knowing it&#8217;s file ID but file name. Please check this <a href=\"https:\/\/zappysys.zendesk.com\/hc\/en-us\/articles\/115005010573-How-to-download-file-from-OneDrive-using-Graph-API\">link<\/a> for more details.<\/p>\n<h2>Download Excel Sheets Through OneDrive API in SSIS<\/h2>\n<p>JSON Source also supports reading API response which returns 2D arrays. Such as\u00a0<a href=\"https:\/\/developer.microsoft.com\/en-us\/graph\/docs\/api-reference\/v1.0\/resources\/excel\" target=\"_blank\" rel=\"noopener\">Office Excel Spreadsheet API<\/a>\u00a0to read excel data. Check\u00a0<a href=\"https:\/\/zappysys.com\/blog\/get-data-google-spreadsheet-using-ssis\/\" target=\"_blank\" rel=\"noopener\">this blog post<\/a>\u00a0to learn a similar scenario to parse 2D arrays. There are few other options for parsing 2D arrays which are\u00a0<a href=\"https:\/\/zappysys.com\/blog\/parse-multi-dimensional-json-array-ssis\/\" target=\"_blank\" rel=\"noopener\">documented here<\/a>.<\/p>\n<div id=\"crayon-5efb7d9f087eb405096699\" class=\"crayon-syntax crayon-theme-vs2012 crayon-font-courier-new crayon-os-pc print-yes notranslate\">\n<div class=\"crayon-plain-wrap\">\n<pre class=\"lang:default decode:true\">https:\/\/graph.microsoft.com\/v1.0\/me\/drive\/items\/01CYZLFJDYxxxxxxx\/workbook\/worksheets('test')\/range(address='A1:B200')\r\n<\/pre>\n<\/div>\n<\/div>\n<h2>Upload a File Through OneDrive API in SSIS<\/h2>\n<p>In this section, you will learn how to upload a file through OneDrive API in SSIS. Uploading a file has few additional steps and has been documented separately. Please check this <a href=\"https:\/\/zappysys.zendesk.com\/hc\/en-us\/articles\/115004893713-How-to-upload-file-to-OneDrive-using-Office-365-Graph-API\">link<\/a> for more details.<\/p>\n<h2>Delete a File Through OneDrive API in SSIS<\/h2>\n<p>In this section, you will learn how to delete a file from OneDrive through OneDrive APIs in SSIS.<\/p>\n<ol>\n<li>Add a REST API task and configure as follows. Make sure to use the File ID of the file which needs to be deleted from OneDrive. Example URL &#8211;\n<pre class=\"lang:default decode:true\">https:\/\/graph.microsoft.com\/v1.0\/me\/drive\/Items\/01W7L3VCSEADQ457W54RBI3I47YGFJOD2I<\/pre>\n<div id=\"attachment_9081\" style=\"width: 818px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/Delete-OneDrive-File.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9081\" class=\"wp-image-9081 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/Delete-OneDrive-File.png\" alt=\"Delete OneDrive File\" width=\"808\" height=\"648\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/Delete-OneDrive-File.png 808w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/Delete-OneDrive-File-300x241.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/07\/Delete-OneDrive-File-768x616.png 768w\" sizes=\"(max-width: 808px) 100vw, 808px\" \/><\/a><p id=\"caption-attachment-9081\" class=\"wp-caption-text\">Delete OneDrive File<\/p><\/div><\/li>\n<li>Execute the task and you will have file deleted from OneDrive.<\/li>\n<\/ol>\n<h2><span id=\"ConclusionWhats_next\"><span id=\"ConclusionWhat8217s_next\">Conclusion<\/span><\/span><\/h2>\n<p>In this article, we have learned how to Upload\/Download\/Delete data\/file from OneDrive API in SSIS. We used <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-rest-api-web-service-task\/\" target=\"_blank\" rel=\"noopener\">SSIS REST API Task<\/a> to extract data through OneDrive API in SSIS.\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\">Download SSIS PowerPack<\/a>\u00a0to try many other automation scenarios not discussed in this article.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Microsoft Graph API\u00a0is a unified way to access many Microsoft services API including OneDrive API. In our previous blog post we saw how to call Office 365 API Graph API. In this post, you will focus on how to access OneDrive API in SSIS and use REST API Task or connector like\u00a0SSIS JSON \/ [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":9115,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[176,205,10],"tags":[228,436,12],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>How to call OneDrive API in SSIS (Upload, Download) | ZappySys Blog<\/title>\r\n<meta name=\"description\" content=\"Learn how to call OneDrive API in SSIS or ODBC Apps (Power BI, Excel, Informatica). Upload \/ Download File to OneDrive, Read \/ Write File.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"How to call OneDrive API in SSIS (Upload, Download) | ZappySys Blog\" \/>\r\n<meta property=\"og:description\" content=\"Learn how to call OneDrive API in SSIS or ODBC Apps (Power BI, Excel, Informatica). Upload \/ Download File to OneDrive, Read \/ Write File.\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/\" \/>\r\n<meta property=\"og:site_name\" content=\"ZappySys Blog\" \/>\r\n<meta property=\"article:published_time\" content=\"2020-08-05T14:08:12+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2025-03-18T13:45:38+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/microsoft-onedrive-logo.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"261\" \/>\r\n\t<meta property=\"og:image:height\" content=\"261\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\r\n<meta name=\"author\" content=\"Ankur Saxena\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ankur Saxena\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/\",\"url\":\"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/\",\"name\":\"How to call OneDrive API in SSIS (Upload, Download) | ZappySys Blog\",\"isPartOf\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/microsoft-onedrive-logo.png\",\"datePublished\":\"2020-08-05T14:08:12+00:00\",\"dateModified\":\"2025-03-18T13:45:38+00:00\",\"author\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/5d5e1e28e4e33b9b1476792c1da011b6\"},\"description\":\"Learn how to call OneDrive API in SSIS or ODBC Apps (Power BI, Excel, Informatica). Upload \/ Download File to OneDrive, Read \/ Write File.\",\"breadcrumb\":{\"@id\":\"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/#primaryimage\",\"url\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/microsoft-onedrive-logo.png\",\"contentUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/microsoft-onedrive-logo.png\",\"width\":261,\"height\":261,\"caption\":\"Download File from OneDrive in SSIS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zappysys.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to call OneDrive API in SSIS (Upload, Download)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zappysys.com\/blog\/#website\",\"url\":\"https:\/\/zappysys.com\/blog\/\",\"name\":\"ZappySys Blog\",\"description\":\"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zappysys.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/5d5e1e28e4e33b9b1476792c1da011b6\",\"name\":\"Ankur Saxena\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cdb3131deed83646dcf41b48c2b7fe76?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cdb3131deed83646dcf41b48c2b7fe76?s=96&d=mm&r=g\",\"caption\":\"Ankur Saxena\"},\"url\":\"https:\/\/zappysys.com\/blog\/author\/asaxena\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to call OneDrive API in SSIS (Upload, Download) | ZappySys Blog","description":"Learn how to call OneDrive API in SSIS or ODBC Apps (Power BI, Excel, Informatica). Upload \/ Download File to OneDrive, Read \/ Write File.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/","og_locale":"en_US","og_type":"article","og_title":"How to call OneDrive API in SSIS (Upload, Download) | ZappySys Blog","og_description":"Learn how to call OneDrive API in SSIS or ODBC Apps (Power BI, Excel, Informatica). Upload \/ Download File to OneDrive, Read \/ Write File.","og_url":"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/","og_site_name":"ZappySys Blog","article_published_time":"2020-08-05T14:08:12+00:00","article_modified_time":"2025-03-18T13:45:38+00:00","og_image":[{"width":261,"height":261,"url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/microsoft-onedrive-logo.png","type":"image\/png"}],"author":"Ankur Saxena","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ankur Saxena","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/","url":"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/","name":"How to call OneDrive API in SSIS (Upload, Download) | ZappySys Blog","isPartOf":{"@id":"https:\/\/zappysys.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/#primaryimage"},"image":{"@id":"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/#primaryimage"},"thumbnailUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/microsoft-onedrive-logo.png","datePublished":"2020-08-05T14:08:12+00:00","dateModified":"2025-03-18T13:45:38+00:00","author":{"@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/5d5e1e28e4e33b9b1476792c1da011b6"},"description":"Learn how to call OneDrive API in SSIS or ODBC Apps (Power BI, Excel, Informatica). Upload \/ Download File to OneDrive, Read \/ Write File.","breadcrumb":{"@id":"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/#primaryimage","url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/microsoft-onedrive-logo.png","contentUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/08\/microsoft-onedrive-logo.png","width":261,"height":261,"caption":"Download File from OneDrive in SSIS"},{"@type":"BreadcrumbList","@id":"https:\/\/zappysys.com\/blog\/call-onedrive-api-ssis-file-upload-download-delete\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zappysys.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to call OneDrive API in SSIS (Upload, Download)"}]},{"@type":"WebSite","@id":"https:\/\/zappysys.com\/blog\/#website","url":"https:\/\/zappysys.com\/blog\/","name":"ZappySys Blog","description":"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zappysys.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/5d5e1e28e4e33b9b1476792c1da011b6","name":"Ankur Saxena","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cdb3131deed83646dcf41b48c2b7fe76?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cdb3131deed83646dcf41b48c2b7fe76?s=96&d=mm&r=g","caption":"Ankur Saxena"},"url":"https:\/\/zappysys.com\/blog\/author\/asaxena\/"}]}},"_links":{"self":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/8965"}],"collection":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/comments?post=8965"}],"version-history":[{"count":52,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/8965\/revisions"}],"predecessor-version":[{"id":11236,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/8965\/revisions\/11236"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media\/9115"}],"wp:attachment":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media?parent=8965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/categories?post=8965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/tags?post=8965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}