sharepoint-list

How to Limit the number of items that can be entered in a SharePoint List?

懵懂的女人 提交于 2021-02-08 11:50:50
问题 I am trying to limit the number of entries allowed on a SharePoint 2010 list . The list is for users to sign up to and we want to limit this to 60 for example. I have had a look at the similar questions but none of them seem to work. None of the validation formulas found so far have been appropriate. I would appreciate any advice and help on this . Thank you is advance ! :) 回答1: There's nothing built-in to allow you to accomplish this. However, if you present your own interface for creating

How to fix “[OData Source [56]] Error: Cannot acquire a managed connection from the run-time connection manager.” error in SSIS?

拈花ヽ惹草 提交于 2020-03-16 06:40:18
问题 I am having problem when running SSIS which extracts data from SharePoint list. SSIS Package was running fine till 2 weeks back and suddenly the package is failing with this error: [OData Source [56]] Error: Cannot acquire a managed connection from the run-time connection manager. [SSIS.Pipeline] Error: OData Source failed validation and returned error code 0xC020801F. [SSIS.Pipeline] Error: One or more component failed validation. Error: There were errors during task validation Tried:

How to fix “[OData Source [56]] Error: Cannot acquire a managed connection from the run-time connection manager.” error in SSIS?

这一生的挚爱 提交于 2020-02-25 04:07:26
问题 I am having problem when running SSIS which extracts data from SharePoint list. SSIS Package was running fine till 2 weeks back and suddenly the package is failing with this error: [OData Source [56]] Error: Cannot acquire a managed connection from the run-time connection manager. [SSIS.Pipeline] Error: OData Source failed validation and returned error code 0xC020801F. [SSIS.Pipeline] Error: One or more component failed validation. Error: There were errors during task validation Tried:

add multiple SPList to SPListItemCollection

空扰寡人 提交于 2020-01-02 20:10:05
问题 I have 1 SPList to 1 SPListItemCollection , I want to add two SPList to 1 SPListItemCollection 1 SPList list = SPContext.Current.Web.Lists[Constants.ListNames.Name]; SPListItemCollection allItems = list.GetItems(spQuery); 2 SPList list = SPContext.Current.Web.Lists[Constants.ListNames.Name]; SPList list2 = SPContext.Current.Web.Lists[Constants.ListNames.Name2]; SPListItemCollection allItems = list.GetItems(spQuery); allItems??? 回答1: I always like to use List<> to handle these. To do that,

access list in sharepoint 2007 using c#

女生的网名这么多〃 提交于 2020-01-02 08:31:59
问题 I'm looking to compile data from a few diffrent custome lists in sharepoint 2007 Its a hosted sharepoint site so I don't have access to the machine backend. Is there any example code to access the sharepoint site using c#? here is my code thus far (i get the error Cannot connect to the Sharepoint site ''. Try again later. ) DataSet dt = new DataSet(); string query = "SELECT * FROM list"; string site = "http://sp.markonsolutions.com/Lists/Security/"; string list = "35E70EO4-6072-4T55-B741

access list in sharepoint 2007 using c#

♀尐吖头ヾ 提交于 2020-01-02 08:31:31
问题 I'm looking to compile data from a few diffrent custome lists in sharepoint 2007 Its a hosted sharepoint site so I don't have access to the machine backend. Is there any example code to access the sharepoint site using c#? here is my code thus far (i get the error Cannot connect to the Sharepoint site ''. Try again later. ) DataSet dt = new DataSet(); string query = "SELECT * FROM list"; string site = "http://sp.markonsolutions.com/Lists/Security/"; string list = "35E70EO4-6072-4T55-B741

Validate a Single line of text column type of list in sharepoint 2010 to accept only numbers?

自闭症网瘾萝莉.ら 提交于 2019-12-22 11:02:03
问题 How to validate a Single line of text column type of list in sharepoint 2010 to enter accept only numbers? Please don't tell me to use calculated column , I tried it and it didn't work for me as i want. Please advice, thanks in advance. 回答1: This should work: =ISNUMBER([MyColumn]+0) 回答2: Here is what seems to work for me (building on @Rob_Windsor; newlines added for readability): =AND( ISNUMBER(Number+0), ISERR(FIND(".",Number)), ISERR(FIND(",",Number)), ISERR(FIND("$",Number)), ISERR(FIND("+

Sharepoint task list and Outlook sync

[亡魂溺海] 提交于 2019-12-19 11:34:09
问题 I am trying to sync Sharepoint task list with Outlook. When the users connect the task list to outlook, the task for all users are visible in outlook. Rather than applying filtering in Outlook, can I provide a filtering at the source itself? There are considerable number of users for my application, it wouldn't be good to ask all users to apply filters on their own. Any other suggestions? Thanks. 回答1: I`v asked the same question: Sync list with outlook only with items in current view.. In

SharePoint Documents Library - Change “Document Created By” field

笑着哭i 提交于 2019-12-14 02:29:10
问题 I have a code that changes the username in various SharePoint lists, mostly by the "Author" column. It all works fine on normal lists, but it doesn't seem to work on the "Shared Documents" list which is a document library. Whether I change the username in "Created By" or "Document Created By", the change doesn't seem to take effect. The item.Update command doesn't throw any exception, but it clearly doesn't update the field(s). What can I do if I want to change this field through code? Thanks

How to move list item into folder in Sharepoint online

妖精的绣舞 提交于 2019-12-13 05:25:11
问题 I created a folder and have some item in this list. So now how can I move list item into folder using JSOM. I know user can drag/drop, but I want when user create a list is always move to folder automatically. 回答1: The following example demonstrates how to move a list item into folder via SharePoint JSOM API: var listTitle = "Requests"; //list title var itemId = 1; //list item id var targetFolderUrl = "/Lists/Requests/Archive"; //target folder server relative url var ctx = SP.ClientContext