2

So I have a set of plain text files included in some directories within sandboxed solution. I want to use these text files to programmatically insert data to SharePoint Online using an event receiver.

I'm just looking for a simple way to read these files within my solution, anyone know of one?

  • Where are the files located in the solution? – David Lozzi Apr 29 '13 at 20:17
  • Well, are they are just within a package. But I can move them to anywhere else within the solution if it makes things easier. – VB Did Nothing Wrong Apr 29 '13 at 20:41
3

Depending on where you store the files, you may not have access to them. Sandbox solutions do not have access to the local file system (see more restrictions here: http://msdn.microsoft.com/en-us/library/gg615454.aspx#BKMK_LowPrivilegeToken). You would have to store the files in a library to gain access to them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.