669
Views
17
Comments
Solved
[FileSystem] Uploading and download documents on sharepoint
Question
Forge component by João Portela
33
Published on 21 Feb 2019

Good day 

I wanted to ask for help, is it possible to upload and download documents online (sharepoint)?

If so how can i do this?


Thank you

Rank: #716
Solution

Please read my article here first:  https://kolaberate.com/Articles/2018/08/22/integrating-sharepoint-with-outsystems/


It should help you get everything setup correctly.  Make sure to modify the outsystems project with your clientid and clientsecret.


Chris

Kolaberate.com


mvp_badge
MVP
Rank: #64

HI Patson,

Can you make your question more clear , what do you mean by upload\download docs from sharepoint?

If i am correct , you have an Outsystems application which you want to integrate with Sharepoint ?



Regards

-PJ-

I have and outsystems application and i want to upload documents using that the application but share them on SharePoint 

mvp_badge
MVP
Rank: #64

Hi Patson,

Check this forge component sharepoint-integration-made-easy  this may help you to achieve what you want.


Regards

-PJ-

Thank you i will try it out then i will update you

Rank: #716

Hi all.  Where can i get the latest sharepoint connector for Outsystems?  I want to achieve the same thing, (Basically upload and download documents to sharepoint.)  thank you!

Rank: #716

Just to let you all know that I created a sharepoint connector project.  It's in the forge at:  https://www.outsystems.com/forge/Component_Details.aspx?ProjectId=4114

This will show you exactly how to connect to SharePoint via Your OutSystems application.


Chris


Rank: #716

Here is the article on how to connect to SharePoint via your OutSystems application:  https://intrinsicinnovation.com/Articles/2018/08/22/integrating-sharepoint-with-outsystems/



Good day Chris


i keep on getting 403 error, i am not sure is it the permissions from sharepoint or from outsystems, if possible will you be able to assist to resolve this? I'm trying to call a sharepoint rest service using the credentials of the active user in the application. But I keep getting a 401 when using the IntegratedAuthentication action in the OnBeforeRequestAdvanced. 

Rank: #3064

Hi Chris.


I´ve just get the ClientId and ClientSecret and gave the permissions. But when I try do use the very first REST

OutsystemsSharepointGetTenantId

I get the "401 Unauthorized" error. 


Rank: #716
Solution

Please read my article here first:  https://kolaberate.com/Articles/2018/08/22/integrating-sharepoint-with-outsystems/


It should help you get everything setup correctly.  Make sure to modify the outsystems project with your clientid and clientsecret.


Chris

Kolaberate.com


Rank: #494

Hi alex lima, you can get the tenant ID by using the get response of https://<MySite>.sharepoint.com/_vti_bin/client.svc/ you just need to find where to get it,


Cheers...

Rank: #77793

I have a UNC path for SharePoint 2013. When I try to read an excel file using File_ReadBinary I get the below error. The UNC path looks like this 

\\abc.def.gh.ij\sites\corp\abc\ABC REports\AB0001_-_Active_Work_Order_Backlog.xlsx\

Win32Error: 53
System.IO.IOException: The network path was not found.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.IO.File.Open(String path, FileMode mode, FileAccess access, FileShare share)
   at OutSystems.NssFileSystem.CssFileSystem.MssFile_ReadBinary(String ssPath, Byte[]& ssContent, String ssDomain, String ssUsername, String ssPassword, String& ssError_message)