Site column naming question

To have my own set of site columns (and content types) I created separate groups for both of them. Now I want to create a 'First Name' site column but there already is a built-in one. What is the recommended (best practice) approach of naming in such cases?
Thanks.

I'm still struggling with this custom site column stuff.
When creating a custom site column (using SharePoint Online GUI) Site Settings -> Site Columns -> Create 'FirstName1' and then change
this site column to 'First Name' I get an error message  "The column name that
you entered is already in use or reserved. Choose another name.” If I change to something different e.g. 'First Name1' the field in the link 
https://xxx/sites/try_out/_layouts/15/fldedit.aspx?field=FirstName1&Source=%2Fsites%2Ftry%5Fout%2F%5Flayouts%2F15%2Fmngfield%2Easpx%3FFilter%3DAll%2520Groups
stays the same as the original entry (=FirstName1). I thought the field in the link is in fact the SharePoint
internal name? So that during the change of the site column (after the initial
creation)  would be the
display name?
Guy

Similar Messages

  • Is there a way to know if my Content Type's fields are a Site columns or List columns

    I am totally confused about Site columns, list columns and content types. as seems i will have the same column name , sometimes dealt with as site column while the other as list column. for example i created a new Issue tracking list which comes with the
    following columns:-
    now i realize that the Description column is a list column (not site column) because if i rename the site column named Description, this list column will not get affected, while column such as "Issue status" is a site column because if i rename
    the site column named "Issue Status" the column inside the "Issue" content type will get affected. while there are two site columns named Description but none of them are used insidie the "Issue" content type, and the Description
    field in the above picture is a list column !!
    so can anyone advice from where i can differentiate if a column inside the Issue content type is a site column or is a list column ???
    Thanks

    Hi John,
    Thanks for posting your issue, Kindly browse the below mentioned URL to identify the site columns and Content Type in your Top level site
    http://www.kalliance.com/blog/tips-tutorials/microsoft/identifying-site-columns-content-types/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Create Site Column and add it to two different list as dependent lookup column

    I want to create two lookup lists that will have one common column. The common column values will vary depending on the list.
    For ex: List A holds Countries (USA) and their Currency code (USD). List B holds States (New York) and their code (NY). The lists are completely independent of each other. I would like to create a common site column named "Code" of type
    Text and use it across these two lists. Is it possible?
    My solution so far -
    a. created the site column (programmatically) which is pretty straight forward.
    b. created list definition with two fields (Title and Code).
    c. created list instance for Country list. Added data rows in the elements.xml. But not sure how to add Code field as dependent lookup.
    If I remove the code field from the elements.xml, the solution deploys successfully creating the Country list with just the Title field. But I need both the fields. Any help is appreciated.
    Here is a look at the elements.xml with data rows for Country list instance
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <ListInstance Title="List Instance" OnQuickLaunch="TRUE" TemplateType="10001" Url="Lists/CountryList" Description="Country Values">
    <Data>
    <Rows>
    <Row>
    <Field Name="Title">USA</Field>
    <Field Name="Code">USD</Field>
    </Row>
    <Row>
    <Field Name="Title">Japan</Field>
    <Field Name="Code">Yen</Field>
    </Row>
    <Row>
    <Field Name="Title">Australia</Field>
    <Field Name="Code">AUD</Field>
    </Row>
    </Rows>
    </Data>
    </ListInstance>
    </Elements>

    Hi,
    According to your post, my understanding is that you want to add lookup field to the list in elements.xml.
    I recoment you to create lookup column as site column, then bind the lookup column to the contnet type, and then use the contnet type in the list.
    For more information, you can refer to:
    http://spcodes.blogspot.com/2013/02/create-custom-content-type-with-lookup.html
    http://social.msdn.microsoft.com/Forums/office/en-US/d5ec08d5-cfa7-4bbb-9459-78d04674ee59/add-a-lookup-column-in-the-schemaxml?forum=sharepointcustomizationlegacy
    http://www.justanothertechnologyguy.com/2013/01/how-to-create-and-connect-lookup-fields.html
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Creating a new Column for my list Versus adding it from existing site columns, when to use each approach

    I have created a new issue tracking list inside SharePoint 2013 team site. And it comes with predefined columns, some of them are useful while the other are not . Can anyone help me in figuring out the following:-
    The list come with a field named “Assigned To”, while in my case I want a column named “Approver”. So what is preferred , to re-name the “Assumed to ”column to “Approver”, or create new field name “Approver”.?.
    If I rename an existing column, could this be overridden in any future updates for my SharePoint server?
    Now we want to add a column named “Office location”.so I need to create a new field for this. But seems there are two ways to do so either to add a new Site Column at the site level and then assign it to the list as follow :- 
    , or to directly adding a column to the list, even if it is not available in the site columns , as follow:-
    So what are the differences between the two approaches ? .if I am not wrong defining a site column will allow me to re-use it in another list , but defining the column at the list level, will allow me to add a column even if it is already defined as site
    column.
    So can anyone advice on my three questions please? Thanks

    1) 'Assigned to' has a different meaning then 'Approver' , it will be better if you create a new field for 'Approver'. Assigned to is a Site Column which has managed property for search, so it will be confusing type of data it will return from search in
    future. 
    2) Any rename of fields should not / and will not get modified in SharePoint updates. So, you can rename is without any issue since the internal name will remain the same. But its always better to create your own custom column for business use.
    3) Creating a site column or not depends upon your need, If you create a Site Column - in whole site collection you will be able to add this field in any list - It will be crawled, SharePoint will automatically provide managed property for site column and
    you will be able to get this value via search. These things will not be present in list column, you will need to do specific settings in case its required.
    If these things are needed then you can go for Site Column, usually its good to create a Site Column and use it.
    For Site Columns you can check following links 
    Introduction to Columns
    From site column to managed property - What's up with that?
    Create a site column
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.
    thanks a lot for your reply it is really helpful. so as i understand that using site columns will be better in most cases, and there is not any specific reason for not using it? is this right ?
    Second question, do u mean that if i have a list column named "Serial number", then this column will not be searched ? For example if i have serial number such as "12345" and i try searching this text "12345" i will not get
    the item in my search ?
    Thanks

  • In PWA, can I use a "Site Column" as "Custom Field" or vise versa?

    Hello,
    I am using PS 2013; I was wondering how/where "Custom Fields" are created? How there are related to the Site Column?
    Can I create a site column and use it as a Custom Field? 
    Hope my question is clear ^_^

    Hello,
    As Guillaume has mention, there is no link between SharePoint site columns and Project Server custom fields, they are different entities used for different parts of the system. Site Columns are a SharePoint setting that can be used in the lists / libraries
    on the SharePoint sites. Project Server custom fields are used by Project Server and not SharePoint. Project Server custom fields are created via the PWA > PWA Settings > Enterprise Custom Fields and Lookup Tables page. You can see a post
    here on creating Project custom fields in the second half of this post:
    http://pwmather.wordpress.com/2014/01/17/getting-started-with-projectonline-part-2-ps2013-office365-project-ppm-sharepointonline-pm/
    Scroll down to the section starting with: "Before we look at creating custom fields lets have an overview.." for details on custom fields.
    You can also create Project Server custom fields and lookup tables programmatically using the PSI / CSOM / JSOM if needed.
    There are ways in which you can "sync" SharePoint columns with Project Server custom fields but this is not out of the box. You would need to look at developing your own solution or look for a 3rd party solution. Fluent Pro have a solution to sync
    Look up tables with other sources such as a SharePoint list, see the Lookup Manager here:
    http://www.fluentpro.com/project-server/other-products/products-for-project-server-2013/
    If you just want Project Server data / fields to be available as a option for a list item on a SharePoint list, look at using the BCS, an example can be seen here:
    http://blogs.catapultsystems.com/epm/archive/2010/11/02/adding-project-server-data-as-columns-to-sharepoint-sites.aspx
    Hope that helps
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

  • How to check if a Site Column is being used before deleting

    Hi All,
    Before deleting a SharePoint Online site column I would like to check to see if it is being used by any list or library. I know how to do this when the site is on
    premise using a PowerShell script.
    $web
    = Get-SPWeb
    http://”sitecollectionurl”
    $column
    = $web.Fields[“Column Display Name”]
    $column.ListsFieldUsedIn()
    but I am having problems doing it on a SharePoint Online site. I know how to connect to the site, but I can not find any information on getting the field details,
    like above.
    if ((Get-ModuleMicrosoft.Online.SharePoint.PowerShell).Count
    -eq0) {
    Import-Module
    Microsoft.Online.SharePoint.PowerShell -DisableNameChecking
    $username
    = "[email protected]"
    $url
    = "https://mySite.sharepoint.com/sites/Dev"
    Write-Host
    "Connecting to SharePoint Online, URL = $url"
    try
    Connect-SPOService
    -Url $url /
    -credential $username
    Write-Host "Successfully connected.."
    -ForegroundColor Green
    $web =
    Get-SPOSite -Identity
    https://mySite.sharepoint.com/sites/Team1
    $column
    = $web.Fields[“Column Display Name”]
    $column.ListsFieldUsedIn()
    =
    $web.Fields[“Page Content”]
    catch
    Write-Error "Failed to connect to
    $url - check the credentials and URL!"
    $_
    Write-Host
    "Disconnecting from SharePoint Online, URL =
    $url"
    Disconnect-SPOService
    Write-Host
    "Successfully disconnected.."
    -ForegroundColor Green
    Does any know what I am doing wrong, or does anyone have a script examples.
    Many thanks
    Colin

    Hi Colin,
    Unfortunately the Get-SPOSite doesn't return a fully fledged SPWeb object like you're used to in On-Prem PowerShell.
    The only way to get at particular objects like this is to use CSOM in PowerShell, however even then it doesn't return quite the same object that you see on prem. (In short, the method you want doesn't exist.. but I'll show you how to get there at least.)
    You'll need the Microsoft.SharePoint.Client.dll installed (You can download the SharePoint 2013 Client SDK, just do a search for it.)
    Once that's installed, then the following script will retrieve a single column which you can then run
    $column | gm to see the available properties.
    $siteCollectionURL = "https://<tenantname>.sharepoint.com/sites/etc"
    $Credentials = Get-Credential -UserName "[email protected]" -Message "Enter the password for $AdminUser"
    ##Then we'll establish a ClientContext for CSOM.
    $scContext = New-Object Microsoft.SharePoint.Client.ClientContext($siteCollectionURL)
    $SPOcredentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Credentials.UserName, $Credentials.Password)
    $scContext.Credentials = $SPOcredentials
    $web = $scContext.Web
    $siteCols = $web.Fields
    $column = $sitecols.GetByInternalNameOrTitle("ColumnInternalName")
    $scContext.load($web)
    $scContext.load($siteCols)
    $scContext.Load($column)
    $scContext.ExecuteQuery()
    Once you run that, $column contains as much info as you can get about the column.
    Paul.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • Bug report - OOB site column ArticleStartDate is crawled according to GMT0 not user/server timezone

    This issue can be reproduced easily on any SP2013 farm (on-premise) and I heard Sharepoint online do not have this problem.
    Issue: Site column "Article Date" with fieldname "ArticleStartDate" is crawled as GMT 0 regardless what timezone your web application, site setting, user setting and OS are set. Also when you submit a search you need to use GMT 0
    otherwise you will get wrong result. I believe it is bug because other datetime columns like "Modified" have handled timezone issue very well.
    To reproduce: On a SP2013 farm (on-premise), check your timezone settings (in my environment it is GMT+8). Then create a site collection and enable its Publishing Infrastructure feature. Then you will see some site columns are setup including "Article
    Date" (field name "ArticleStartDate"). Now create a custom content type and add some columns including "Article Date" to it. Create some sample items using the custom content type and remember fill in the value for "Article Date".
    By default it should allow you pick a "Date" only. After save the change you should see "Article Date" is saved like "2014-06-18 00:00:00" if check with powershell.
    After create some sample items start a full crawl. You will see find two crawled property "ows_q_DATE_ArticleStartDate" and "ows_ArticleStartDate" appear in Search Service Application -> Search Schema. There are some existing managed
    properties mapping to those crawled properties like "ArticleStartDateOWSDATE" (which is TEXT datatype).
    Here you can create some new managed property or use existing. Apply search using those properties to test. In my lab, I created "NewsArticleDate" as managed property and mapping to ows_ArticleStartDate. Then I create a blank
    page and add a "Search result" and "refinement panel" webpart and start some search. In the refinement panel added in the managed properties setup in previous steps. In the querystring I typed in something like /search.aspx?k=newsarticledate=YYYY/MM/dd
    It is what I see:
    1. As you can see in the refinement panel, because I am at GMT+8 and crawled index at GMT 0, the sample data "2014-06-18 00:00:00" will become "2014-06-17 16:00:00".
    2. Hence, in order to search out "2014-06-18 00:00:00"  item I have to input "2014-06-17" in search query! (in SP2013 the time part are ignored)
    3. By using the powershell provided by Ivan Josipovic (http://gallery.technet.microsoft.com/office/Get-Crawled-Property-names-9e8fc5e0), I can see the items
    ows_ArticleStartDate is "2014-06-18 00:00:00".
    I hope it is actually not a bug. Please let me know if my setting is wrong. Thank you!

    Hi Mark,
    According to your description, my understanding is that the Article Date column displayed with the value based on GMT0 in the Refinement web part.
    Microsoft SharePoint stores date and time values in Coordinated Universal Time (UTC, but also named GMT or Zulu) format, and almost all date and time values that are returned by members of the object model are in UTC format. So the value
    of the Article Date column stores the date and time in UTC format in the database, and the search indexes the UTC value of the Article Date column after crawling the database so that it displays the UTC value in Refinement web part.
    The list column values displayed in the lists that are obtained through the indexer for the SPListItem class are already formatted in the local time for the site so if you’re working on current context list item and fetch a datetime field
    like so SPContext.Current.ListItem["Your-DateTime-Field"] you’ll retrieve a DateTime object according the specified time zone in the regional settings.
    More references:
    http://francoisverbeeck.wordpress.com/2012/05/24/sharepoint-tip-of-the-day-be-careful-when-wor/
    Thanks,
    Victoria
    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]
    Victoria Xia
    TechNet Community Support

  • Selecting data in forms from site column fields

    We are seeing some unusual actions when selecting data from site columns on the new item form.  Here's the context.
    2 lists are maintained at the Intranet level and designated as a site column.
    4 lists are maintained at a subsite level and are also designated as a site column.
    We created a list on the second tier subsite (third level) and added all 6 of the site columns to the list.
    When opening the new item to add an entry, some of the fields have a default value listed.  You only need to click your selection once to populate the field.  Some fields appear with (none) as the default value.  Other fields are blank and
    you have to double click your selection to populate the field.
    We have not edited the default forms in any way...they are straight out of the box.
    I'm assuming this has something to do with the setup on some of the lists, sites, or site columns, but haven't the foggiest as to what may be causing the issues.  All list settings I've thought to check are consistent with each other.  Any help
    would be greatly appreciated.

    robin, you are on to something with the 20 item question.  i created three lists with 19, 20, and 21 items respectively and then added 3 columns to my test library and attached to those lists.  when in internet explorer, 19 works perfect.  however,
    on the new item form, the fields for 20 and 21 are 3 times the length of the 19 field and do require a double click for entry.  when adding a new item in firefox, all three fields were single click entry.  is there someway to change this behavior?
    the mystery remains though on the default value.  in this test library and test columns, (none) shows up as the default value on the new item form for all fields regardless of the number of items in the list.  cameron, since these are lookup columns,
    the default value option disappeared on the column creation page.  is there another location where i need to select a default value?  or, hopefully not, do i need to copy over my data and delete/recreate the lists?  
    i know early on the creation of the lists were somewhat haphazard in that some users turned off required entry for the title field and skipped over it for data entry while others simply renamed the title field and entered data in it.  that may be more
    of a nit on my end, but wasn't sure if it might randomly have an impact.

  • How to add get the field name for a newly added site column.

    I have the following:-
    Enterprise wiki site collection inside SharePoint server 2013.
    I added a new site column of type managed metadata.
    I opened the enterprisewiki.aspx page layout using the SP designer, to add the newly added site column to it.
    But I have noted that to add any site column I need to know the field name , for example the default wiki category column is referenced inside the page layout as follow:-
    <Taxonomy:TaxonomyFieldControl FieldName="Wiki_x0020_Page_x0020_Categories" EmptyValueDescriptionForTargetTemplate="<%$Resources:cms,enterwiki_nocategories_assigned%>" DisableInputFieldLabel="true" runat="server"/>
    <b>
    So my question is how I can know the field name for my newly added site column?
    Thanks in advance for any help.
    Regards

    Hi,
    The “FieldName” should be the internal name of the column, you will find it at the address bar at the “Site Columns”->”Edit Column” page:
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Ambiguous Column Naming Error In Query

    I'm getting a strange Oracle error when I try and run a (relatively)
    straightforward query.
    This is the error I get:
    ORA-12801: error signaled in parallel query server P000
    ORA-00960: ambiguous column naming in select list
    This is the query that Kodo is generating:
    SELECT DISTINCT
         t0.EVENT_ID, t0.ACTIVE_YN, t0.CREAT_BY, t0.CREAT_DT,
    t0.REPORTED_CURNCY_CD,
         t0.PUB_DESCR_TX, t0.FREQUENCY, t0.MOD_BY, t0.MOD_DT, t0.EVENT_NAME,
    t0.CLI_ID,
         t0.ORG_UNIT_ID, t0.RATING_CD, t0.TOTAL_MONEY, t0.RISK_CLASS_ID, t0.TYPE,
         t0.STATUS_ID, t0.LOSS_LOC_CUR, t0.EVENT_TYPE, t0.EVENT_NAME
    FROM
         DEF_EVENT_DATE t2, EVENT t0, EVENT_DATE t1
    WHERE
         (((t2.DATE_TYPE_CD = 'Start Occurrence Date' AND
         t1.VALUE_DT <= {ts '2002-10-09 14:17:02.422'}) AND
         t0.CLI_ID = 2963) AND
         t0.EVENT_ID = t1.EVENT_ID AND
         t1.DATE_TYPE_CD = t2.DATE_TYPE_CD)
    ORDER BY
         t0.EVENT_NAME ASC
    t0.EVENT_NAME is being selected twice. I am guessing this has something to
    do with the ORDER BY clause.
    But in conjunction with the DISTINCT keyword this is breaking the query.
    This can be shown in the following simple example:
    SELECT DISTINCT
         t0.EVENT_NAME, t0.EVENT_NAME
    FROM
         EVENT t0
    ORDER BY
         t0.EVENT_NAME ASC;
    This throws the same 'ambiguous column' error as before.
    My question is why is the DISTINCT keyword being used in this query and
    how do I fix it?
    Thanks in advance,
    Simon

    i'm not sure,
    but the problem you reported tends to be an oracle problem.
    (selecting a column twice should be not a problem)
    the ORA-error you reported is a parallel query error ...
    and parallel queries are bound to some special conditions ...
    try: alter table <table> parallel 1
    and apply your test again.
    "Simon Horne" <[email protected]> schrieb im Newsbeitrag
    news:ao1js8$i6r$[email protected]..
    I'm getting a strange Oracle error when I try and run a (relatively)
    straightforward query.
    This is the error I get:
    ORA-12801: error signaled in parallel query server P000
    ORA-00960: ambiguous column naming in select list
    This is the query that Kodo is generating:
    SELECT DISTINCT
    t0.EVENT_ID, t0.ACTIVE_YN, t0.CREAT_BY, t0.CREAT_DT,
    t0.REPORTED_CURNCY_CD,
    t0.PUB_DESCR_TX, t0.FREQUENCY, t0.MOD_BY, t0.MOD_DT, t0.EVENT_NAME,
    t0.CLI_ID,
    t0.ORG_UNIT_ID, t0.RATING_CD, t0.TOTAL_MONEY, t0.RISK_CLASS_ID, t0.TYPE,
    t0.STATUS_ID, t0.LOSS_LOC_CUR, t0.EVENT_TYPE, t0.EVENT_NAME
    FROM
    DEF_EVENT_DATE t2, EVENT t0, EVENT_DATE t1
    WHERE
    (((t2.DATE_TYPE_CD = 'Start Occurrence Date' AND
    t1.VALUE_DT <= {ts '2002-10-09 14:17:02.422'}) AND
    t0.CLI_ID = 2963) AND
    t0.EVENT_ID = t1.EVENT_ID AND
    t1.DATE_TYPE_CD = t2.DATE_TYPE_CD)
    ORDER BY
    t0.EVENT_NAME ASC
    t0.EVENT_NAME is being selected twice. I am guessing this has something to
    do with the ORDER BY clause.
    But in conjunction with the DISTINCT keyword this is breaking the query.
    This can be shown in the following simple example:
    SELECT DISTINCT
    t0.EVENT_NAME, t0.EVENT_NAME
    FROM
    EVENT t0
    ORDER BY
    t0.EVENT_NAME ASC;
    This throws the same 'ambiguous column' error as before.
    My question is why is the DISTINCT keyword being used in this query and
    how do I fix it?
    Thanks in advance,
    Simon

  • Upgrade SharePoint Content Types / Site Columns declaratively in SharePoint hosted apps

    Hi!
    I have a question where I was unable to find any official guidance for. I have created a SharePoint hosted APP where I have multiple site columns and content types (declared in XML). The APP installs and functions just fine. 
    Now I have a requirement to change a site column (Choice field, just add some more choice values). I was able to update the site column but the changes will not be reflected on the list column (I think because there no way to push the changes).
    So is there an "official" way of changing site columns?
    Any help is appreciated!
    Thx!

    msdn -
    How to: Update app web components in SharePoint 2013 :
    We do not support changing the data type of a list or content type field (column) after its initial deployment in any
    circumstance. In particular, do not change the data type of a field as part of an app update (not
    even programmatically). As an alternative, you can add a new field. If the app includes custom item create, edit,
    or view forms; be sure to make corresponding changes in these forms. For example, add UI for the new field and remove UI for the old one. (In a provider-hosted app, you can programmatically move data from the old field to the new one and then delete the old.
    How to: Update apps for SharePoint
    [custom.development]

  • I lost the ability to order and hide site columns if i use custom content type with a custom Create Form

    I have a team site collection and I want to add a new App of type Issue Tracking list. so I did the following:-
    From the site collection I created a new App of type issue tracking.
    Then from the site collection I created a new Content type named “CustomIssue” which has its parent as “Issue” content type.
    I went to the Issue tracking list and I changed the default content type from Issue , to the new “CustomeIssue” content type.
    I open the site collection using SP designer and I created a new Create form for my Issue tracking list based on the "CustomIssue" content type and I select to have the Create form as the default form when creating an item.
    Everything till this point worked well. But when I open the “customIssue” content type , and I re-order the columns and I hide some columns, this was not reflected inside the custom Create form …
    although when using the default content type and the default create form you can control the order of the fields and to specify if certain fields hold be hidden inside the Create form.. so can anyone advice on this please?

    Hi,
    According to your post, my understanding is that you lost the ability to order and hide site columns if i use custom content type with a custom Create Form.
    I try to reproduce the issue, the result is the same as yours.
    As a workaround, if I modify the custom content type form the site setting, and then change the NewForm as the default form, it will change the column orders.
    However, if I use the new created form as the default form, it will remain the original orders.
    I recommend that you modify the custom content type form the site setting, and then reset the NewForm as the default form.
    The result is as below:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support
    ok thanks for the explanation ,, but what if i want to change the order and hidde some fields in the future ,, do i have to chnage the defualt create form again ...

  • Filter for custom added site columns using rest

    Hi everybody,
    I'm trying to filter a REST Response by a custom added site column.
    when i'm using the endpoint lists() with /Items the filter works great:
    site/_api/Web/Lists(guid'805e17b0-2728-4b30-a889-a7e8f025696b')/items?$filter=astringcolumn%20eq%20%27dfg%20-----------------------------%27
    but when I'm trying to filter using
    site/_api/Web/GetFolderByServerRelativeUrl('/sites/DennisDevSite/alib')/Files?$filter=astringcolumn%20eq%20%27dfg%20-----------------------------%27
    I get a response that states Field or property "astringcolumn" does not exist.
    event if I add &$select=astringcolumn&$expand=astringcolumn to the url the same error is returned
    Why does the first work and the second does not?
    Thx in advance
    Dennis
    P.S.: sorry: I also posted this question in the sharepoint 2013 apps forums. but I think it's better to post it here

    Hi Dennis,
    Steve as mentioned the reason this happens. You may try any of the following workarounds:
    Get the files using Files Rest endpoint and then perform the filteration in the success handler based on the custom column. The Rest query needs to include ListItemAllFields. Example: site/_api/Web/GetFolderByServerRelativeUrl('/sites/DennisDevSite/alib')Files?$expand=ListItemAllFields
    Note that you cannot use filter in the Url.  
    The other option is to use CAML Query Payload, but that can only be used with getitems REST endpoint. However, this will return the ListItem corresponding to the file. It wont be a file object. Example:
    function getListItems(viewXml)
    var url = "http://aissp2013/_api/web/lists/getbytitle('Management Documents')/getitems";
    var queryPayload = {
    'query' : {
    '__metadata': { 'type': 'SP.CamlQuery' },
    'ViewXml' : viewXml,
    'FolderServerRelativeUrl': '/ManagementDocuments/F1'
    return $.ajax({
    url: url,
    method: "POST",
    data: JSON.stringify(queryPayload),
    headers: {
    "X-RequestDigest": $("#__REQUESTDIGEST").val(),
    "Accept": "application/json; odata=verbose",
    "content-type": "application/json; odata=verbose"
    var query = "<View><Query><Where><Eq><FieldRef Name='Location' /><Value Type='Text'>Srinagar</Value></Eq></Where></Query></View>";
    getListItems(query)
    .done(function(data)
    console.log(data);
    .fail(
    function(error){
    console.log('Error');
    Still, the other option is to use old fashioned ListData.svc. It will allow filter in the url and will also return some file properties like Name, approval status, version etc along with all custom properties. Example:
    http://aissp2013/_vti_bin/ListData.svc/ManagementDocuments/?$filter=Path eq '/ManagementDocuments/F1' and Location eq 'Srinagar'
    Please remember to up-vote or mark the reply as answer if you find it helpful.

  • Edit/Display form does not show site columns after upgrade

    https://social.technet.microsoft.com/forums/sharepoint/en-US/580111d4-72ca-4193-87ab-1dfd6082fa88/document-set-library-column-not-showing-up-on-edit-form
    Hi all,
    I don't think this is related to the above question, but the linked "solution" is as good as I can come up with, however it looks like its possible that ALL the libraries in the collection are suffering the same situation...
    WHATS HAPPENING:
    our site was migrated to 2013 from 2010 from 2007 and is running in compatability mode around 6-18 months ago. I'm pretty sure the old system is gone too - database backups might be obtainable... not sure.
    There are a bunch of "site columns" that are used consistently across the collections libraries (there seems to be a general avoidance of "content types", don't ask me why, I don't know, I also don't know what would be involved in moving
    them all to content types as many of the sites "views and webparts" use the content type columns to surface things all over the place, so I suspect it would be a big job), but folks have recently noticed that some documents are missing from various
    pages (webparts that are gathering documents from these columns values).
    But the problem is that it seems that since the update most (all?) of the document libraries NO LONGER enforce the requirement and litterally only show "name*", and "title" in display and edit properties...
    Any ideas on how to get things back to showing the "proper" forms (I can only guess what this was from documentation and screenshots and general guessing based on the "commonness" of the columns in question)? Or is there a way to merge
    or migrate "columns" to content types in some way that is either "collection wide" or non-breaking?
    ANY assistance would be greatly appreciated!

    So just to be sure are you saying that '2010 compatabilty mode' is causing these issues?
    Just to be SUPER clear from my end this is what I'm seeing as an example;
    For a collection
    with site columns
    many but not all lists
    many but not all list items
    --> are missing valid data in the site columns that have been registered for that list.
    sample:
    name          modified by    doctype     department
    item1.docx   username   <blank>  <blank>
    item2.docx   username    WorkInstruction    Planning
    if you click "edit properties" you are presented with ONLY the (I'm guessing) content types fields (eg: for Document you get Name and Title) and NONE of the other fields that should be specified.
    However if you hit "save" you can see that the data in these fields returns to the "list view" (however it does not re-enable these fields from being active in the View/Edit properties pages).
    Is this something that can be fixed? Or are you saying that we need to backup the DB and restore to a FULL version (not in compatability mode) of SharePoint2013? Or are you saying we need to revert to our PRE update backup and do something?
    Its been many months since thsi upgrade was done and the system has changed a lot, so you can imagine we are reluctant to loose much of these changes...
    Bazinga!

  • How to programmatically create a site column and a content type

    Hello,
    I'd like to create a site column (let's say a field text) and a content type, only  using c#  -i.e. I don't want to add new item/column and then xml. This code will be added to a FeatureActivated.My code is :
    public override void FeatureActivated(SPFeatureReceiverProperties properties) {SPWeb rootweb = (SPWeb) properties.Feature.Parent;
    SPFieldText field = new SPFieldText(SPfiledscollection???, "field1");
    if (field != null)
    rootweb.Fields.Add(field)
    rootweb.Update();
    }   SPContentType newContentType = new SPContentType(spcntenttypeId??, SPContentTypeCollection ??, "content1");
       rootweb.ContentTypes.Add(newContentType);
       rootweb.Update();
    Are there any sample codes out there? I've only found samples using xml - which has an irritating "feature"
    Thank you
    Christos

    Nice code and it helped me understand. Some small questions. I'm trying to make all the "data" for a (sub)web site.
    So, I think, my steps are:
    1. create site columns+content type
    2. create  list
    3. create a lookup site column that uses the list on <2>
    4. create content type that uses the site column on <3>
    5. Create the list for the content type on <4>
    My confusion is: should I use one feature for everything? Your code is using scope=site, so i need to "hardcode" the web site's name. I don't mind doing that , I just don't know how to use scopes in features for creating data.
    Thank you
    Christos

Maybe you are looking for

  • STANDARD PROGRAM FOR SMARTFORMS

    hi all, i have problem in finding standard program for <u>std. PO Smartforms</u> i.e /SMB40/MMPO_A (purchase order). i have checked in table TNAPR. i dint find. can anyone help finding the std. program name. regards, thanks in advance.

  • How do I modify custom step type that is part of a sequence?

    I have an example sequence that has a custom step type called "LabView Reentrant Action". My interest is to modify this step type to my needs. Because this custom step type is part of the sequence there is no definition in global type palette. I was

  • BRIEF overview of all Modules of SAP

    Hi All, I wanted a brief overview of all the modeules in SAP, rather all well known business modules of SAP. Wanted it on an urgent basis as had to give a presentation in regards to the same. Please help. Rewards points will surely be alloted. Thanx

  • IPhone 5 SIM card

    I am going to start this by saying that I know very little about technology. That being said, here is my situation: I am studying abroad currently and got a new iPhone 5 slightly before Christmas. When I went abroad I had a foreign SIM card put in so

  • Heads-Up: Safari 4.0.5 update cripples Disk Utility

    Hi guys, Just a heads-up. If you're planning to install the Safari 4.0.5 update and also maintain a separate OSX partition on the same HDD (backup, maintenance partition, etc), you might consider holding off for now. I installed the update, everythin