SharePoint 2013 WCF Reading a list with a column to allow multiple lookup values

Hi Team,
I'm using SP2013 default WCF in _vti/bin/ListData.svc to read a list.
This list has a look up column and it allows multiple values. While I read the list, I'm not able to retrieve this column as list.
For Example, my parent list is 'VehicleList' and this has a column called-ColorLookUp (lookup with allow multiple values) linked to the 'ColorsList'.
Pseudo Code:
var vehicleItemsList=spcontext.VehicleList.toList(); 
foreach(var item in vehicleItemsList)
var colorItemList=item.ColorLookUp
I'm expecting the 'colorItemList' should have values but it always gives me the count=0. But the same lookup column works if I dont allow multiple values.
Please help me on this.
thanks

Hi,
For the Lookup column, “Expand” is required if you want to get it through ListData.svc.
A code snippet for your reference:
var items = dc.List1.Expand("MyLookupColumn1");
foreach (var item in items)
Console.WriteLine(item.Title);
foreach (var lk in item.MyLookupColumn1)
Console.WriteLine(lk.Title + "---" + lk.Path);
Feel free to reply if there still any questions.
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they
help and unmark them if they provide no help. If you have feedback for TechNet
Subscriber Support, contact [email protected]
Patrick Liang
TechNet Community Support

Similar Messages

  • What are the minimum requirements to successfully Synchronize a SharePoint 2010 Calendar or Task List with Outlook 2010?

    What are the minimum requirements to successfully Synchronize a SharePoint 2010 Calendar or Task List with Outlook 2010?
    SharePoint permission levels required for the user profile?
    Does the user need top level permissions on the SharePoint site?
    What other minimum requirements must be met for Outlook 2010 to synchronize successfully with SharePoint 2010?
    TheDrape

    Hi,
    To synchronize these libraries and lists, you must have Outlook 2010 installed on your client computer and you must have Collaborate permission to the library or list.
    You don’t need any permissions for the user profile.
    I provide you a link about synchronizing SharePoint 2010 content with Outlook 2010 for your reference:
    http://office.microsoft.com/en-us/sharepoint-foundation-help/synchronize-sharepoint-2010-content-with-outlook-2010-HA101881295.aspx
    Thanks,
    Rock Wang
    Rock Wang TechNet Community Support

  • SharePoint 2013 we have edit list option

    Hi Friends,
    In the SharePoint 2013 we have edit list option is there.If we edit the list all the rows will be in edit mode.
    If I edit the list First column data in second column,second column data in third column and so one....
    SharePoint 2013 list edit mode how can I align the data in First column data in first column,Second column data in second column and so one....
    Please can any one help me on same.It is very urgent.
    Thanks,
    Tiru
    tirupal

    Sorry I didn't get you. Please clarify below for my understanding.
    1. Are you referring to Quick Edit in SharePoint 2013 list?
    2.  What alignment --> By default first column will be on first column data. can you post more details on what you would like to accomplish.?
    Here is the something which I understood.
    Bala

  • Handling Large list with 150+ columns(40+ Searchable) and 100000 rows.

    Hi All,
    We are working on project architecture for project with the following issue:
    1. List having 150+ columns out of which:
    - 40+ columns need to have search (i.e Indexing)
    - 30+ lookup columns
    - 10+ date time columns
    - 40+ multiline text columns
    2. List having 100000+ records
    - As per business we don’t have any specific folder criteria to divide list items into folders.
    Business Requirements:
    - filter on the list (it should show real time data so can’t use SharePoint Search)
    - Export to Excel 30000+ data in <30 Sec
    Our list is already normalized and we don’t see any scope to normalize it further.
    Problems of breaking the list into multiple list:
    1.)Low performance as join is taking very much time(due to 30,000 items)
    2.)Secure transaction problem i.e. suppose we broke list into 5 child lists. Now if I need to add an item in list then it has to be implemented by adding part of item to each child list.
       There may arise problem such as items inserted to 4 list successfully but failed in insertion into last list.
    Thank you in advance.
    Thanks, Satish

    Hi All,
    We solved this problem by normalizing list into many list.
    Then creating one search list with all columns as plain text no look up this list have all the columns from all different list. Then writing event receiver to update this search list on item change. 
    and one timer job which will delete and recreate this search list weakly.
    Let me know if you have any better solution.
    -Satish 

  • SharePoint 2013 witing code to work with a custom list

    I am asking this question since I am new to working with SharePoint 2013, but I have programming experience working with C#.net and VB.NET.
    I have a workflow 2013 that is accessed by a custom list (and updated by Infopath 2013). Once a user has submitted the custom list to the workflow 2013, there will be the 'proper' authorized person in the company that will approve or reject the request.
    Once the user has submitted the request, I do not want them to be able to update the list any more. I want the user to only have 'view' access.
    In workflow 2010, I see that there is the impersonate step that would change the permisisons for me. However I would prefer not to use an older version of the workflow.
    Thus can you show me and/or point me to links that will do the following:
    1. What .net code could I  use that will change the permissions on the custom list I mentioned above. The code can be in either C#.net or VB.net?
    2. If I am able to use the .net code, would you show me how to 'wire together' the .net code with the 2013 workflow? I do know that I would use Visual Studio.net 2012 to write the code. Would you explain, draw a picture, and/or point me to a url that will explain
    to me where to place the .net code so it is connected to the workflow 2013?

    I am going have a large volume of users (about 300 to 500) from my company creating these requests. So you are saying that I should create a subfolder of each request.
    Thus I have the following additional questions:
    1. If I move the requests to subfolders, how will the users be able to able to find their requests when placed into a different subfolder? I have views setup for the users, would I adjust the view for each user? Can you show me in workflow how to move
    the requests to another subfolder?
    2. It sounds like a need a subfolder for each request is that correct? If not, do I move all requests to one subfolder?
    3. Would you show me how you recommend that I change the permissions on the subfolder(s)?

  • SharePoint 2013 site collection 'upgrade completed with errors'

    Hi All, 
    I am in process to upgrade SharePoint 2010 to SharePoint 2013 with all steps as mentioned in TechNet. 
    I was able to get all the SP2010 UI in SP2013 environment. However, when I navigated to top level site and clicked on “Site
    Collection health checks”. In SP2010 environment I never used (as Farm Admin) any Video content type. It belongs
    to out-of-the-box "digital asset content types" and cannot be deleted.
    Therefore I changed the name of Video to our department name like "Video - Company" and ran the site collection health check again. This time there was no conflict for content types. 
    After ran the site collection upgrade I got following error. 
    -------------------------------------------START------------------------------------------
    05/05/2014 14:34:28.66 OWSTIMER (0x1474)
    0x123C SharePoint Foundation Upgrade
    SPFeatureDefinition aj2bj
    ERROR Feature upgrade action 'AddContentTypeField' threw an exception upgrading Feature 'CTypes' (Id: 15/'695b6570-a48b-4a8e-8ea5-26ea7fc1d162') in Site 'http://sp13fe01-dev': Field type
    Rating is not installed properly. Go to the list settings page to delete this field.
    32d48d9c-70d4-f09a-6073-526808f844be
    05/05/2014 14:34:53.04 OWSTIMER (0x1474)
    0x123C SharePoint Foundation Upgrade
    SPSiteWssSequence2 ajy6m
    ERROR Feature upgrade incomplete for Feature 'CTypes' (Id: 15/'695b6570-a48b-4a8e-8ea5-26ea7fc1d162') in Site 'http://sp13fe01-dev'. Exception: Field type Rating is not installed properly. Go to the list settings
    page to delete this field. 32d48d9c-70d4-f09a-6073-526808f844be
    05/05/2014 15:18:43.95 OWSTIMER (0x1474)
    0x123C SharePoint Foundation Upgrade
    SPManager ajxoe
    ERROR RunUpgradeSiteSession [SPSite Url=http://sp13fe01-dev] failed.
    32d48d9c-70d4-f09a-6073-526808f844be
    05/05/2014 15:18:44.16 OWSTIMER (0x1474)
    0x123C SharePoint Foundation Upgrade
    SPManager ajxoe
    ERROR Exception: Upgrade completed with errors.  Review the upgrade log file located in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS\SiteUpgrade-20140505-143330-61.log.  The
    number of errors and warnings is listed at the end of the upgrade log file.
    32d48d9c-70d4-f09a-6073-526808f844be
    05/05/2014 15:18:44.16 OWSTIMER (0x1474)
    0x123C SharePoint Foundation Upgrade
    SPManager ajxoe
    ERROR   at Microsoft.SharePoint.Upgrade.SPUpgradeSession.CheckPoint()     at Microsoft.SharePoint.Upgrade.SPUpgradeSession.LogEnd()     at Microsoft.SharePoint.Upgrade.SPManager.RunUpgradeSiteSessionCore(Object
    lockObject, SPSite site, SPUpgradeOperationFlags upgradeOperationFlags, Boolean checkConcurrentSiteUpgradeSessi
    32d48d9c-70d4-f09a-6073-526808f844be
    -----------------------------------END-------------------------------------
    Feature ID 695b6570-a48b-4a8e-8ea5-26ea7fc1d162 is Standard Content Type Definitions  https://social.technet.microsoft.com/wiki/contents/articles/7695.sharepoint-2010-list-of-features-id-displayname-and-scopes.aspx. 
    Any expert to solve the issue?? 
    Thank you. 
    regards, 
    Aroh Shukla

    Hi All and Inderjeet,
    Thanks for your reply and pointers. 
    I did follow the steps as mentioned in the links above. I used some third party solutions but not for any Video solution. I was able to successfully migrated the SP2010 (WSS_Content) to SP2013 (WSS_Content) environment a few weeks back with exactly same
    third party solutions and no site collection error:
    I renamed the default and out-of-the box video site content type as shown:
    I ran the "Site Collection Health Check" and did not receive any error as in my second screenshot. 
    But, after upgrade the Site Collection Upgrade and got the same errors. 
    I don't know if there is any SharePoint Server 2013 patch gave this error as I keep run the Windows Server 2012 (not running R2) and SharePoint Server 2013 regularly.  
    Can suggest how to resolve this error?
    Many Thanks!!
    --Aaroh 
    Aroh Shukla
    The same here. Opening a support ticket with MS.

  • Workflow in SharePoint 2013: Update item in list

    I have a task list where anyone can post a suggestion for a blog. There is a string field for the status.
    I have a library where the author can upload the blog article when ready to send for review. Uploading the document triggers the workflow to start. This document is reviewed twice and when the author is satisfied it will go for translation and then for web
    publication.
    All of this is worked out in the workflow except for one thing: I would like to update the task list at each stage of the process to the current status. Since it can all be done programmatically, I don't need to use a "choice" field. The string
    field would be just fine. One of the things I saw in my research is that "choice" fields won't update.
    I have put a lookup field in the blog article library to correspond with the title in the task list to create a relationship.
    First of all, is it possible to do to update a task from a document library, or am I just spitting in the wind? If so, why doesn't it work?

    which specific field you want to update after task approval. Did you create a content type based on workflow task (SharePoint 2013) and associated that particular content type with your task list?
    I repeat my question - do you want to update task list after the task execution or just after assignment?
    If its just after assignment then I think its not possible OOB and if its after the execution of the task then its doable OOB since there are two variables set as task out i.e. task outcome and TaskID (guid of the current task list item) and from that TaskID
    you can lookup the task list item and update any field.

  • SharePoint 2013 names for custom lists

    I have the following to mention about changing the name of a custom list for SharePoint 2013.
    1. In my test SharePoint area the person that is our 'admin' for SharePoint, went to the 'recent' area of my test area in quick launch and changed the name of my Custom list. The features like email messages did not work at the point.
    2. I then went to list settings on the test website, and changed the name of the custom list to match the name my 'SharePoint' admin changed the name to. I reran my test workflow, and the features started to work again like the email messages.
    **Note: Myself and the SharePoint 'admin' person at my company have only worked with sharepoint 2013 for 3 weeks.
    Thus can  you tell me relationship of changing the name of the custom list in the 'quick launch' area versus changing the name is the list settings? Do both areas need the values changed?

    Your observation is currect
    Quick Launch name change actually change name in navigation item (site settings -> navigation) which don't change anything on actual list. That is just a "text to display"
    If you change actual list name from settings it should impact Quick Launch if "Display this survey on the Quick Launch?" Set as Yes from list general settings
    I will suggest you to explore,
    site settings -> navigation
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • SharePoint 2013 error while opening listing page

    Dear All,
    I have upgraded my SharePoint 2007 to SharePoint 2010 and SharePoint 2013.
    Currently I m facing problem whenever I click on any list pages (eg. Press Release) on Sharepoint 2010 and 2013 application.
    Attaching the error message. Please help.

    Is there any custom code used in the master page or other pages?
    I'd suggest you open the PR_listing.aspx page in SharePoint designer and then do a search for "ServerContext" and if you get a match, then you or a developer will need to update the code to use the SPServiceContext approach instead.
    If you don't get a match on ServerContext then you'll need to look at what custom controls are being used - and if I were you I'd comment each one out until the page loads.
    *********************************************************************** Please remember to mark your question as answered and Vote helpful if this solves/helps your problem. Thanks - Mark. **********************************************************************

  • Getting error while configuring SharePoint 2013 that "SocketException was thrown with SocketError ConnectionRefused"

    Hi,
    I am installing the SharePoint-2013 on development virtual machine. and i have the following environment.
    Windows server : 2012
    SQL server 2012(enterprise edition)
    Active directory(domain) is configured on same server.
    for SharePoint configuration purpose i had  created SP_farm account with SQL server DB_creator,security admin etc rights.
    even though m facing this issue related with socket exception.
    Error in log file :
    04/08/2014 12:26:33  1  INF            Trying to see if port 35513 is free on machine SHAREPOINT2013.  Min port we will try is
     1024, Max port we will try is 49151
    04/08/2014 12:26:35  1  INF            A SocketException was thrown with SocketError ConnectionRefused
    04/08/2014 12:26:35  1  INF            Connect has been refused for port 35513, so we will consider this a free port
    04/08/2014 12:26:35  1  INF            Have not found a free port yet.  Number of tries is 1.  Min port we will try is 1024, Max
     port we will try is 49151
    04/08/2014 12:26:35  1  INF            Adding port 35513 to the exclusion list so it is not chosen again during this run
    So m bit confuse about is this error related to network issue or something else that i have to configure on server.
     any suggestion or reply will be appreciated..!:-) 
    Shiv

    Is the firewall turned on?
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • Sharepoint 2013 Foundation three tier farm with two Webservers in NLB

    Heloo,
    I have been strugling with a problem the last htree days.
    I have instelled and configured a sharepoint 2013 three tier farm with Sharepoint 2013 Foundation and MS SQL 2014 Express. This is a Test Farm and all the servers are Windows 2012 R2.
    I have one SQL Server, one Application Server and two Webservers. The tow web servers are configured with Multicasting NLB. The NLB name is "sharepoint.ws.domain.net". The IP of the NLB is also in our DNS Zone.I have made a Web Application with
    the name "sharepoint.ws.domain.net" on port 80 (NLB name) and a Site collection with the same name.
    Now whene I am working on the Sharepoint Site I get very offen a login Window or I get the message "An error occurred while processing the request on the server. The status code returned from the server was: 0".
    The error "An error occurred while processing the request on the server. The status code returned from the server was: 0" comes when I try to create a sub Site (most with no Permissions inheritance)... but not allways. I also get  sometimes
    the same message when I upload files (MS Office documents and PDF files).
    The login Windows comes whene I am navigating throw the Sites... but also not allways.I go to the Site with an IE11 and the Site is also in the Intranet security sites.
    Can you help me on this one...
    Kind Regards
    Ioannis Kyriakidis

    With no hostname on the Web Application, you have to create Host-named Site Collections. So that complicates things a bit.
    As far as NLB setup, you create Web Applications the same way you would otherwise. NLB is simply installed on both Web Servers and placed into the NLB VIP (virtual IP). The DNS A record points at the VIP.
    Also set up your Windows NLB using Unicast instead of Multicast. If you have certain types of switches that block unicast ARP from multiple clients, e.g. Cisco, you may have to make an exception for them (e.g. http://www.cisco.com/c/en/us/support/docs/switches/catalyst-6500-series-switches/107995-microsoft-nlb.html).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • SharePoint 2013 dev environment as standalone with DC - PowerShell in Azure?

    Hi,
    I am looking for a PowerShell script that create based on a Visual Studio 2013 Azure image a dev environment in azure. I need a Standalone server with DC / SQL / SharePoint 2013 on one server.
    Provide Microsoft a script for this requirement?
    Regards,

    First off, Microsoft does not support SharePoint 2013 on a Domain Controller. Here are some scripting resources, however:
    http://msdn.microsoft.com/en-us/library/windowsazure/dn385843.aspx
    https://github.com/WindowsAzure/azure-sdk-tools-samples/wiki/Automated-Deployment-of-SharePoint-2013-with-Windows-Azure-PowerShell
    http://blogs.msdn.com/b/windowsazure/archive/2013/05/24/automating-sharepoint-deployments-in-windows-azure-using-powershell.aspx
    http://blog.appliedis.com/2013/04/29/automating-sharepoint-2013-installation-on-windows-azure-iaas/
    http://absolute-sharepoint.com/2013/10/create-a-scripted-sharepoint-2013-development-environment-tutorial-part-1.html
    Trevor Seward, MCC
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Sharepoint 2013 designer assign to task with created by column failing

    We are getting below exception when we assign a task to created by column in sharepoint 2013 designer workflow.
    It was working till last week.
    RequestorId: c70d0b6d-a1c7-6825-5dec-3bc13f0713bf. Details: System.ArgumentNullException: Value cannot be null. Parameter name: Input at Microsoft.Activities.Expressions.SplitString.Execute(CodeActivityContext context) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance
    instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation) 
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi,
    According to your post, my understanding is that you got exception when we assign a task to created by column in sharepoint 2013 designer workflow.
    To troubleshoot the issue, I recommend to capture the created by field value in a variable.
    You can add a "Set variable workflow" action and get the value of this field. Then, add a "Log on workflow history" action and log the value of the variable and see if it is capturing the right value. And in the task action, put the variable
    on the user field and do some tests.
    In addition, you need to make sure the variable return field as "string" or "Email Address”.
    Here is a similar thread for you to take a look at:
    http://sharepoint-community.net/forum/topics/sharepoint-2013-workflow-action-send-email-only-works-for-me?xg_source=activity
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Your client does not support opening this list with windows explorer - related to multiple uploads?

    Hi folks -
    I've read through some threads regarding "Your client does not support opening this list with windows explorer" and it seems a lot of folks have a lot of solutions throughout the forum posts.  Is there anything official or semi-official regarding
    this? 
    I've tried a lot of the fixes including:
    checking to see if the WebClient service is on
    modifying so-and-so registry (I've since changed them back since they seem to have no effect)
    and changing various settings in Internet Options including making sure the site is in the Local intranet zone.
    I could live without this functionality but just recently my upload-multiple-files functionality in SharePoint 2010 has also gone away (red x instead of directory UI).  I wonder if it's related somehow and could give us a clue.
    If it helps I'm using various browsers but of the IE flavor 8 and 9 32-bit as the base for testing this.

    For SharePoint 2013 (so could apply to 2010 as well), my problem was that I was trying to "Open with Explorer"
    something that probably can't be opened with Explorer. In my case, I just wanted to open my team's Shared Documents with Explorer. I found that when I first log into SharePoint and view the page, I'm presented with those Shared Documents, but also other things
    as well.
    To get "Open with Explorer" to work, I must click "Shared Documents" under the Libraries heading on
    the left. Then, all the other stuff (Links, Getting Started, etc.) go away and I'm focused on my team's shared documents. From there, I can go up to the Library Tools section in the ribbon, choose the Library tab in the ribbon, and click Open with Explorer.
    Works like a champ on Windows 7 64-bit, running IE 9 32-bit.
    Unfortunately that's not what was going on in my case.  One obvious way to check is to see if other people or other computers can Open with Explorer.  In my case it was just this one machine on my desk that had the issue.

  • Select List with Submit : a display and a return value are needed...error

    Hi,
    Why the next SELECT returns error in Select list with submit ?
    List of values definition:
    SELECT b.nom nom_bannniere,
    b.no_banniere no_bann
    FROM banniere@my_source b
    WHERE b.statut = 0
    ORDER BY nom_bannniere;
    1 error has occurred
    * LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.

    gfrancoeur,
    Try this SQL:
    SELECT b.nom d,
    b.no_banniere r
    FROM banniere@my_source b
    WHERE b.statut = 0
    ORDER BY 1Thanks,
    - Scott -

Maybe you are looking for

  • Do you have any idea of 'Mass Unit Of Measure for DESADV'?

    XI mapping 'Mass unit of measure for DESADV' What action is supposed to do to for above words?

  • Accessing the EAC in different sites

    I currently have an Exchange 2010 environment with a 3 node DAG.  All servers are 2008R2 and we have 2 production servers and one DR server (at a remote site). I am working on upgrading our Exchange to 2013 and have installed 2013 SP1 on -3- 2012R2 p

  • FBL5N report by profit center

    Hi Gurus, I am checking FBL1N and FBL5N reports by profit center. I am not able to get the profit center in Customer and vendor line items. Where as in GL view profit center is appearing. How to populate profit center in customer and vendor line item

  • How to do the latest date?

    Hi, I have multiple lines of purchase history for 1 item, what i want to select is: if the purchased date is the latest one and the memo='Y', Invoice# cost purchased_date memo 1234 $50 02/11/06 Y 2222 $50 01/15/05 N 3333 $60 09/05/04 N how do i do?

  • With holding tax key relted counmtry

    Dear Experts, when i am creating Remitence challana respective vendors  1) country : india path:EWT>posting>India>Remittence challana>Maintain Number Groups inthat column four fields avilable. Co code Sec code  Off W/Tax key number  when i am selecti