Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6154453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:15:57+00:00 2026-05-23T20:15:57+00:00

I need to test the CRM 2011 and SharePoint document management performance. So I

  • 0

I need to test the CRM 2011 and SharePoint document management performance. So I hooked up CRM and SharePoint together using Document list component.

And now I need to upload a document into SharePoint (not attachment) using CRM SDK.

Is there any solutions, or even a little piece of code which uploads a document into a SharePoint document list?

Sultan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:15:58+00:00Added an answer on May 23, 2026 at 8:15 pm

    What I do is:

    Create the Sharepoint Document Location (related to the SP Site) with a relative url (via CRM SDK).

    Turn the file into a byte array and then I feed that to my HTTP PUT method to get the file up to sharepoint:

    private NetworkCredential loginCredentials = new NetworkCredential(login, password, domain);
    
    WebClient wc = new WebClient();
    wc.Credentials = loginCredentials;
    wc.UploadData(destinationUrl, "PUT", fileData);
    

    destinationUrl is where I want it to go (http:\\spite\accounts\RyanonRails\examplefile.txt), fileDate is a byte[]. Make sure the user you’re using has Full Control (so it can upload).

    This method works great when you receive a report from SSRS.

    Sidenote: When I tried to use the actual sharepoint 2010 copy.asmx web service it failed to work cross domain.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to test a web form that takes a file upload. The filesize
I need to test for general URLs using any protocol (http, https, shttp, ftp,
I need to test performance of queries based on spatial data. I decided to
I need to test an application that processes SIP requests. For now, I want
I need to test web API functions in REST format. Currently using Selenium RC
I need to test the efficiency of shellsort when I am using the standard
I need to test whether various types of database objects exist in a given
I need to test a serial port application on Linux, however, my test machine
I need to test a site with a dynamic menu in Mac Firefox, but
I need to test if a file is a shortcut. I'm still trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.