Tag Info

New answers tagged

3

Since you seem to get a lot of not so great answers on this question: You can not use the Server Object Model outside of the SharePoint farm. This means that you can not use the Microsoft.SharePoint.dll. Instead you need to use the Client Object Model (CSOM). So you need to convert your code (rewrite it) to CSOM and instead of the ...


-3

You can,t use vs 2010 with SP 2013 because web part template in vs 2010 is mapped to 14 folder . But in SP 2013 we have 15 folder instead of 14, and vs 2012 is compatible with 15 folder. so you have two option now 1) Use vs 2012 2) change version 12.0.0.0 to 15.0.0.0 and .net version to 4.5 and other changes also required . Let me know if u have other ...


-2

In you WCF service project in Visual Studio, click expand References in the project select the reference to Microsoft.SharePoint and open the Properties dialog and on the property Copy Local select True. Then the DLL will be included in the project when being built.


2

No, the best you could do I believe is to create your own workflow action that would introduce your own business logic that you could then call in your workflow. http://social.technet.microsoft.com/wiki/contents/articles/13604.sharepoint-2010-create-a-workflow-activity-using-visual-studio-2010.aspx


0

well, just try to adding View Scope='RecursiveAll'. have a look <View Scope='RecursiveAll'><Query><Where><And><Geq><FieldRef Name=\"ows_Created\" /><Value IncludeTimeValue=\"TRUE\" Type=\"DateTime\">2013-01-01T15:55:52Z</Value></Geq><Leq><FieldRef Name=\"ows_Created\" /><Value ...


1

Actually there are two errors: Looking up "by value" (without the LookupId="True" attribute) needs me to pass only the value of the field referenced/show; in other words the value right of the ;#: <Query> <Where> <Eq> <FieldRef Name="Contrato"/> <Value Type="Lookup">ABAP14</Value> </Eq> ...


1

You can check the permissions of a user using the 'DoesUserHavePermissions' method. See code sample below. However in order to return all the sites you need to loop over all the sites and site collections. This is very resource intensive! I would not recommend it on a webpage or when the code will execute a lot. On a webpage you risk getting slow page ...


0

There is a lot easier way to do this if you want to execute the code based on user permissions instead of Group Membership, usually each group will have different permissions. You can use "SPSecurityTrimmedControl" to render code blocks based on permissions. ex: <SharePoint:SPSecurityTrimmedControl runat="server" Permissions="AddListItems"> <!-- ...


0

Paste your web service URL directly in browser to check whether it asks for credentials if it is then pass credentials something like this jQuery(document).ready(function() { $.ajax({ url: url, type: 'POST', data: { username: id, password: pass }, success: function(content) { alert('ok'); }, ...


0

Just Add application pool account your internal SP site run from to the Web Service Submitters group of extranet (Record centre).


1

Yes, you can do this using posting SOAP messages to the web service using HttpClient object (MSDN for HttpClient). You can look here in the answer http://stackoverflow.com/questions/14336414/httpclient-soap-c. It shows how to make a SOAP web service call using C#. On the other hand if your're using SharePoint 2013 you should know, that SOAP Web Services is ...



Top 50 recent answers are included