w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
  Home » SHAREPOINT » Page 1
How to run web part with Elevated Privileges?
You can use this site: Run With Elevated Privileges SPSecurity.RunWithElevatedPrivileges(delegate() { //New SPSite object. using (SPSite site = new SPSite(web.Site.ID)) { //Do things by assuming the permission of the "system account". } });

Categories : Sharepoint

prevent double meeting sharepoint calendar csom
Look at all your set_items. Most likely your date fields need an actual date object to be stored successfully to SP. var currDate = new Date(); listItem.set_item('DateColumn',currDate); listItem.update(); Cool stuff here to: http://alexeybbb.blogspot.com/2012/09/sharepoint15-js-update-datetime-field.html

Categories : Sharepoint

Isolate search results in SharePoint 2013
Have you looked at creating your own result source, add filter to remove items of Type X and make that as default result source? Here is the link to TechNet article explaining how to create a Result Source: http://technet.microsoft.com/en-us/library/jj683115(v=office.15).aspx

Categories : Sharepoint

Unable to connect to Sharepoint in Salesforce using File-connect
My guess is that either your Salesforce auth provider is not correctly configured or that your SharePoint Online app is not correctly configured. I would recommend opening a ticket with the Salesforce support team so that they have a look at your configuration.

Categories : Sharepoint

Office 365 rest api - Search files
Here is the article that explains Search API available for SharePoint: SharePoint Search REST API overview http://msdn.microsoft.com/en-us/library/office/jj163876(v=office.15).aspx I hope that is what you were looking for!

Categories : Sharepoint

Programaticlly checkout webpage sharepoint
file.forceCheckOut = false here the msdn function http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.forcecheckout(v=office.15).aspx

Categories : Sharepoint

Add Custom Button to Sharepoint 2013 List Item
I'll try to help you as much. If you want to make a change before saving, you can insert a javascript on the form you desire. Before saving the Sharepoint runs a javascript code with "PreSaveAction" function, eg PreSaveAction function () {your code; return true} Do not forget to put return true or return false. You will return true place to save and return false to not save. The cancel button

Categories : Sharepoint

SharePoint 2013Visual WebPart with custom properties
If you need help in creating a visual webpart in SharePoint 2010 using C#, follow this link If you need help with webpart property alone, try the following code: public static string SampleText; [Category("Extended Settings"), Personalizable(PersonalizationScope.Shared), WebBrowsable(true), WebDisplayName("Sample Text"), WebDescription("Please Enter a Sample Text")] public string _SampleText {

Categories : Sharepoint

Sharepoint Workflow does not run after item has been created
Make sure you are not running old workflows. You can do a Powershell monitoring, case does not run powershell run the workflow. The reason for this problem is to have very workflow running at the same time.

Categories : Sharepoint

Sharepoint 2013 Design
There are umpteen materials about Sharepoint designer today. Use the latest version from Microsoft Website. You don't need any development environment other than freely available Sharepoint Designer 2013. Microsoft support/Tech teams have written tutorials in terms of blogs. Also in Youtube you can search with Sharepoint Designer 2013 for help on latest designer tools. One point to remember is th

Categories : Sharepoint

sharepoint workflow 2013 find itemId in task
For those who are trying the same using CSOM. Step 1: First query the list in which the workflow is running with Item ID - 2 Step 2: Read the Field name which is created with your workflow name. 'VetriWorkFlow' is the workflow name and field name. (FieldUrlValue)mlstItems[0].FieldValues["VetriWorkFlow"]; Step 3: In this field you will be able to see an instance id. Capture the same and pass i

Categories : Sharepoint

Only a single enumeration is supported by this IEnumerable
Obvious mistake, just been staring at the screen too long. Should have been returning the userContextList instead... public List<UserInformationListItem> getAllUsers() { var userContextList = new List<UserInformationListItem>(); SharepointDataContext context = new SharepointDataContext(new Uri("http://spserver/_vti_bin/ListData.svc/")); context.Credentials = new NetworkCre

Categories : Sharepoint

SharePoint content restored but websites missing
You likley do not have a managed path configured for your SharePoint sites. If you look at the URL of the sites that you can't see you should be able to figure out the managed paths to add. http://technet.microsoft.com/en-us/library/cc261845(v=office.15).aspx You are kinda defining mount points for site collections here. Without that mount point SharePoint will not render your sites.

Categories : Sharepoint

Office 365 SharePoint v1.0 API Authorization Issue
Thanks for getting in touch and we appreciate the feedback. A fix is being rolled out to address non-admin's access to Files/Folders through Files API. If you are still in the development/exploration phase, you could consider following measures to unblock: a. Temporarily add the user as the admin on the my site host web b. Temporarily get AllSites permissions for the app I'll update

Categories : Sharepoint

accessing files and folders other than sharepoint site's default shared documents using office365 api
I just went through the documentation of this new API, it seems the file operation is limited to the one drive, I doubt you can get file in another document library. To get files in other document library, as you're developing windows store APPs, you can SharePoint mobile object model or REST APIs: Overview of the SharePoint 2013 mobile object model Get started withthe SharePoint 2013 REST ser

Categories : Sharepoint

SSIS script delete or replace Sharepoint library file
Fixed this issue by changing the relevant line to: File.Copy(Path.Combine(fileDir, "filename.CSV"), Path.Combine(SPDir, "filename.CSV"), true); The boolean argument specifies whether to overwrite the existing file and is "false" if not specified.

Categories : Sharepoint

how to create global variable in the sharepoint visual web part
There are a few ways of sending information between pages in .Net: Querystring - Don’t use Querystring to send protected information HttpContext - Works only with Server.Transfer Cookies - Don’t store secured information in cookies Session - persisting secured information’s across pages Read through How to Pass Values from One Page to Another in ASP.Net? to give you a better understandi

Categories : Sharepoint

CAML person or Group field with Multiple values
After some changes I was able to figure out this. If the field has multiple values we should define the value Type as LookupMulti. Following is the working code sample siteDataQuery.Query = @"<Where><Contains><FieldRef Name='TargetedPeople' LookupId='TRUE'/><Value Type='LookupMulti'>" + webInContext.CurrentUser.ID + "</Value></Contains></Where>";

Categories : Sharepoint

vbscript accessing Sharepoint 2010 forms to enter data gathered
SharePoint 2010 uses Javascript to open a list form in a modal dialog. The actual form would be in page called newform.aspx. For example, if your list is at http://mysite.mydomain.com/lists/tasks, the new item page would be at http://mysite.mydomain.com/lists/tasks/newform.aspx. Perhaps an easier way to d this is to use the Javascript Object Model. Microsoft includes a function called showModa

Categories : Sharepoint

TFS 2012 with SharePoint - migration of one collection
You certainly have plenty of options out there between database detach and attach and 3rd party migration tools). Most tools will allow you to preserve the metadata (authors and timestamps) along with the structure and content of your site collection. I invite you to evaluate the different offers, all majors companies offer trials. You will find Sharegate's trial here I am certainly biased be

Categories : Sharepoint

Get all domains for a tenant through REST API
Sounds like what you want to know is the list of verified domains in your Azure Active Directory tenant. (Azure AD is the directory service behind Office 365 and other Microsoft online services.) The Azure AD Graph API—AAD's REST API—can provide this for you. In your case, the GET request you would want to make is: https://graph.windows.net/abc.onmicrosoft.com/tenantDetails Note: y

Categories : Sharepoint

SharePoint Apps turned off.
There is a great TechNet Article on Configure an environment for apps for SharePoint (SharePoint 2013) Apps rely on the App Management and Microsoft SharePoint Foundation Subscription Settings service applications. These service applications use the multi-tenancy features to provide app permissions and create the sub domains for apps You'll need to create a Web Application for your Apps to be ho

Categories : Sharepoint

Sharepoint 2010 merging 'wikis' together
Wiki pages and publishing pages uses different content types and different columns. I think it's pretty straight forward if you are just migrating content over from publishing page to wiki pages with a script but it gets very tricky when web parts are involved.

Categories : Sharepoint

Datasheet issue with more than 500 entries.[Sharepoint foundation 2010 ]
5000 throttle limit is view limit (administrators have 20000 items limit by default). As you mentioned you can change it in central administration but it's not good practice as it has relation to SQL table locking strategy (when more than 5000 rows are read from SQL table, table is completely locked and all other data requests are hold). You can create multiple views with less than 5000 items but

Categories : Sharepoint

Can the SharePoint object model setup data retention on an item?
To further elaborate, the request was to allow data retention (1 month, 3 months, 6 months) for items in one document library. Separate document libraries could have been used, but when it comes to reports, that would have been more unnecessary coding to compensate for separate libraries. If one document is set to 1 month, it needs to be moved to the recycle bin, but the other items stay based o

Categories : Sharepoint

Create Biztalk 2013 artifact for sharepoint in visual studio
As far as I know, you don't need to generate any schemas for SharePoint. To populate a list for example you would need to fill in the properties of the SharePoint adapter by promoting an XML file as a property. You can find more information here: http://jpsmit.bloggingabout.net/2013/01/24/biztalk-server-2013-sharepoint-adapter-walkthrough/

Categories : Sharepoint

how to fetch Large sharepoint list item(>10000) and write them in text file
Try using SPQuery.RowLimit to specify the number of items to be fetched. (The MSDN link also has an example of loading limited number of items in multiple pages)

Categories : Sharepoint

Cannot open Workflows from Item after deleting workflows via Powershell
I solved this. Note for all those who came here by google: This is not a good practice for removing workflows, but only a solution if you already messed up your workflows in SharePoint. (like me) $oldWorkflow="MyOldWorkflow"; foreach ($item in $list.Items) { foreach ($wf in $item.Workflows) { if ($wf.ParentAssociation.Name -eq $oldWorkflow) {

Categories : Sharepoint

Sharepoint App Deployment Issues - The App domain for this site has already been assigned
I restarted all services in the server for sharepoint to solve the problem namely: AppFabric Caching, Sharepoint serach host controller, Sharepoint search server 15 , Sharepoint Timer Service, Sharepoint user code host Services can be restarted from Control Panel-> Administrative tools -> services It seems one of the service is responsible for the updating configuration in DB, even when I

Categories : Sharepoint

Does knowledgelake store documents locally before sending to Sharepoint document library
Should be under c:/Users//Roaming/KnowledgeLake/*. You should be able to see each document as a folder and the actual document inside that library. It should be in batch form if you are using Capture.

Categories : Sharepoint

How to fix SPFeatureDefinition does not contain a definition for RootDirectory
It was indeed something very basic. The solution/project was set as Sandboxed. Just going to the properties of the project (not the property pages but hitting F4 while the project is selected on Solution Explorer) and setting Sandboxed to false will let you compile when you're accessing the RootDirectory solution in code. Also, a few other properties/method not show up when the solution is Sandb

Categories : Sharepoint

How to add user from office 365 to a list
There are many things involved here : 1) A Office 365 user , need not necessarily have access to SharePoint Online as well, It depends on the License . In the Office365 Admin section, check the license associated with the user, and see if it covers SharePoint Online. 2) In the SharePoint Admin Section , check the active user profiles and check if the mentioned user is available. 3) Add a user t

Categories : Sharepoint

How to create a sharepoint list column that links to another list that is editable
This is possible, but it will require custom development, using the SharePoint Object Model. Create your two lists and then you can either create a javascript/HTML based solution using libaries like jQuery and SPServices, or you can create a custom web part and use C# to update the lists. There's lot of examples out on the internet on how to do this. Write some code, and bring any problems you h

Categories : Sharepoint

Adding App from SharePoint Store + SharePoint 2013
Apps rely on the App Management and Microsoft SharePoint Foundation Subscription Settings service applications. These service applications use the multi-tenancy features to provide app permissions and create the sub domains for apps There is a great TechNet Article on Configure the Subscription Settings and App Management service applications Other than that double check your SSL certificates.

Categories : Sharepoint

SharePoint Hosted App 2013 - List Permissions on App Level
No,I don't think that is possible. If you need to manage permissions for a list you can deploy it to the host-web and access that list via the app. That way the app will inherit the permissions you defined for the list in host-web.

Categories : Sharepoint

Issue in web.EnsureUser for FBA users programatically
I'm very late to this question, but I had the same problem today and a colleague of mine finally found a solution. I just use the AllowUnsafeUpdates property of my SPWeb object and write : web.AllowUnsafeUpdates = true; oUser = web.EnsureUser(userId); In my case, userId is from a PeoplePicker, I construct it like this : PickerEntity selectedEntity = (PickerEntity)peEditor.ResolvedEntities[i];

Categories : Sharepoint

Close Sharepoint modal popup code behind
After success of onclick function modal will be closed . Or clicking on close button which is added in html modal will be closed function btnApprove_OnClientClick() { //ur code for server side SPContext.executeQueryAsync(btnApprove_Success, btnApprove_Fail); } function btnApprove_Success() { SP.UI.ModalDialog.commonModalDialogClose(); } function btnApprove_Fail(sender, args) {

Categories : Sharepoint

can we install sharepoint 2013 on my windows 8 O.S?
Officially, no, it is intended for Server OS's only. Unofficially, this is possible. These were some notes I made along the way of installing SFS on a 64 bit Windows 8.1 Pro with 8GB RAM (for a proof of concept - Customer had applicable server licenses, but no Dev Environment, FWR). PC must be on a domain Install this hack : http://www.disruptivei.com/Blogg/Inl%C3%A4gg/6/Install-SharePoint-2013

Categories : Sharepoint

sharepoint 2013 - use CSOM to change the view sort column
How to set View sorting via CSOM: var pagesList = ctx.Web.Lists.GetByTitle("Pages"); var view = pagesList.DefaultView; view.ViewQuery = CreateOrder("Title",true); view.Update(); ctx.ExecuteQuery(); public static string CreateOrder(string fieldName, bool ascending) { return string.Format("<OrderBy><FieldRef Name="{0}" Ascending="{1}" /></OrderBy>", fieldName, ascending ? "

Categories : Sharepoint




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.