Enterprise custom field value using SharePoint API - sharepoint

Is it possible to get project's enterprise custom field value using SharePoint 2010 API?

Well, Project Server has its own data structure and you cannot access it from SharePoint API. You have to use Project Server PSI.

Related

How to develop custom fields for SharePoint Online list - Lookup with Picker

We have a SharePoint 2010 list where a custom field "Lookup with Picker" has been implemented through a farm solution. We need to migrate the list to SharePoint Online but since we cannot deploy farm solutions in O365 environment, is there a alternative or workaround to implement that custom field in SP Online?
You could use JSLink to change field render for classic view in SharePoint online.
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/custom-field-type-sharepoint-add-in
For modern view, you need create SPFx solution.

SSIS 2017 OData source - Sharepoint 2016 $expand

Unable to select expanded properties of an expanded type, when using a query with $expand operator.
Sharepoint 2016 list contains a 'Person or Group' field (column=Client), when querying the list:
SSIS 2017 Odata query:
.../_vti_bin/listdata.svc/mylist?$select=Client,Client/UserName&$expand=Client
Only ClientId is returned in the preview.
When using the browser with above url, the XML scheme contains desired properties - nested.
Any suggestions?
Also, the odata source is using V3.
Is it possible to force it to use V4? If so, how?
ODATA with Sharepoint $expand
Try modifying the Select part as following:
.../_vti_bin/listdata.svc/mylist?$select=Client/Name,ClientId&$expand=Client
Similar issue posts
Using $expand query option with OData, SSIS and SharePoint 2013
OData $expand not working for User Field in SharePoint App
Additional Information
Using the $expand OData Query Option in SharePoint 2013
SharePoint 2013 API OData For Lookup Fields
Adding query options to the SSIS OData Source
Sharepointlist adapter
I really don't like using ODATA Source to read from Sharepoint since it is a generic component for Open Data. Instead, in order to read from a Sharepoint list, you can use the SharepointListAdapter which is a component created by Microsoft community:
SharepointListAdapters-2017-11-27
GitHub project - mssql ssis community samples
The project was published on Codeplex, later after Codeplex is turned into archive it is published on GitHub
Official documentation Download the white paper, it contains a step by step guide on how to use this component

Sharepoint/InfoPath 2010 Insert into a external database and sharepoint library

I have a Infopath form that add items to a database via a web service. (This part works fine).
I was wondering if it is possible to upload this form to sharepoint site (I know you can do this part), but also to be able to submit to the sharepoint library?
If so how would I go about submitting to a sharepoint library? Would I have to do it via my web service?
Thanks
James
In SharePoint you have a so called forms library. This library can have a form template, i.e. InfoPath template. This template could very well be your form which submits to this form library as well to some external database via a webservice.

Is it possible to create a list in WSS 3.0 based on a custom template using SharePoint web services?

I want to create a SharePoint list using SharePoint web services (instance is SharePoint Services v3.0). That list should be built from the custom list template that I have created previously. Browsing through MSDN documentation resulted in the following resolutions:
services.ListsService.AddList(title, description, templateID);
or
services.ListsService.AddListFromFeature(title, description, featureGUID, templateID);
Now, if we take a look at the first implementation, there is a problem as the templateID doesn't exist for my custom template - it refers to the default ones instead.
The second implementation is no good either as I need the templateID again, but I also need the feature GUID which I have no idea how to get. Could anyone help please? Thanks.
It has been confirmed to me from people from Microsoft that, unfortunately, it is not possible to utilize features to create a SharePoint list using SharePoint web services. It can be either done by developing custom web service, or by using Object Model.

Access sharepoint list from windows application

Can anyone tell me if I have some ways to access to sharepoint list from windows app?
I've tryed following way (i'm under user that is sharepoint member):
SPUserToken token = new SPUserToken(
BitConverter.GetBytes(WindowsIdentity.GetCurrent().Token.ToInt32()));
SPSite site = new SPSite(siteName, token);
but no luck...
Your best bet is to use a web reference to query the SharePoint WebService's GetListItems web method:
http://msdn.microsoft.com/en-us/library/lists.lists.getlistitems.aspx
Like Jason said, to be able to use the SharePoint Object model (i.e. the sharepoint dll's) the app needs to be running on the same machine as SharePoint. If it is anywhere else you can only use the Web Services provided by SharePoint (or create your own and deploy that to your sharepoint server).
P.S. In SharePoint 2010 you have the client object model at your disposal, basically a subset of the full sharepoint object model (Kinda like Silverlight). Of course sp2010 is still in beta....
This article provides an excellent and detailed step by step tutorial on how to do this using Linq and Web services. It does create a console application instead of a Windows application but it is very easy to translate this into a Windows Form app if needed. I found this article very useful when I started working on programatically communicating with SharePoint lists because it clearly demonstrates how easy it is to work with the web service response from SharePoint using LINQ.
Is siteName on the same computer that you are running the windows application from? If not, then you won't be able to access that site if you're using SharePoint 2007.
If the above isn't the problem, then check that the user account WindowsIdentity.GetCurrent() is at least a site owner on siteName.

Resources