upload document to sharepoint programmatically
-
Freitag, 29. Juni 2012 17:24
Hi,
I have created plugin to get email attachments from CRM my next step was to upload the attachments to Sharepoint
I tried using CopyIntoItems method of the Copy web but I am getting below error
Could not find default endpoint element that references contract 'SPCopy.CopySoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.opy server of sharepoint
I tried the code in console application and it worked fine
I have tried to copy the app.config to bin folder of CRMWEB but no luck
I have tried ref Sharpoint client dll but the DLL works with .ne 3.5 and CRM DLLs work with CRM 4.0
I am sure that people used to develop plugin before for CRM and sharepoint integration in previous crm Version
Please advice
Thanks
Marwa
Alle Antworten
-
Samstag, 30. Juni 2012 07:57Moderator
Hello Marwa,
I'm afraid that you will have to instantiate endpoint of SP manually. Something like http://danielcai.blogspot.com/2012/01/config-less-wcf-service-endpoint.html
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Als Antwort vorgeschlagen Parthiban.T Samstag, 30. Juni 2012 09:35
-
Dienstag, 3. Juli 2012 18:58
Thanks alot for your response
I have found another way by using webrequest and webresponse to upload the documents to sharepoint
I will try your solution also. if it works it will be better than web request and response
thanks
Marwa