Tag Info

New answers tagged

0

Compare the values of your Current Item's Created column and Modified column in your workflow. If the two datetime values are equal, your Current Item is newly created. Else, your Current Item's been changed. Did my workflow run on item changed or item creation?


2

For listing item in a particular order you should use orderby in the URL var queryGet = "?filter=Title ne 'reply'&$top=10&$orderby=Created desc"


0

i solved it with client script (needs jquery). Better solutions are welcome. $(document).ready(function(){ $(".ms-selectednav").removeClass("ms-selectednav"); var query = window.location.pathname.split('/').pop() + location.search var link = $("a[href*='" + query + "']:first"); var table = ...


1

It's not a complete answer yet, but I got a piece of the answer, hence my post. I spotted that the MDS (Minimal Download Strategy)*(1) is altering the behaviour my custom script. For some page loads, the MDS is used, generating URLs like start.aspx#/Lists/link/to/my/element. When the page is dynamically created with the asyncDeltaManager like this, my ...


1

Try var groupedItems = listItems .OfType() .GroupBy(item => ((TaxonomyFieldValue)item[_EI_Field_Name]).TermGuid) .ToList();


1

You can't, this is an all or nothing setting. It is either content approval for everyone, or no one.


2

It should be noted that there are no synchronous calls available in the JS Object Model, and this is on purpose. The proposal to use promises is just a different async pattern, but that's okay… It is possible to artificially 'force' the scripts to work in a synchronous manner using various techniques, but there's really no reason to. Async patterns (direct ...


1

You should use jQuery Promises http://www.shillier.com/archive/2013/03/04/using-promises-with-the-javascript-client-object-model-in-sharepoint-2013.aspx doSomething() .then(doSomethingElseWhenThatsDone, orHandleAnError) .then(doYetAnotherThingWhenThatsDone, orHandleAnError); function doSomething(){ //set up some JSOM stuff var dfd = $.Deferred(); ...


0

What I did was to develop a new application page based on the original "versions.aspx" page, then I added some custom controls on the new page. Go to "/Template/Layouts/versions.aspx" and copy this page into your desktop or another location. Note: Please DO NOT modify the original versions.aspx page just copy it. Create an SP empty project on VS, and map ...


0

You can use CSOM for getting all site users, use following example var collListItem; function GetAllUsers() { var clientContext = new SP.ClientContext.get_current(); var web = clientContext.get_web(); var userInfoList = web.get_siteUserInfoList(); collListItem = userInfoList.getItems(); clientContext.load(collListItem); ...


1

By default, a lookup field contains just one value. In this case, the field value is an object of type String, and the string has the following format: Id;#Value Use int value = new SPFieldLookupValue(item["Project_x002f_Task_x0020_Status_"] as String).LookupValue to read the lookup value and int id = new ...


0

When you install SharePoint, you will have to specify the database containing SharePoint configuration. So one instance, multiple configuration databases.


1

At the very least, I would separate the server in two different instances on the same SQL Server, but I don't see it being completely impossible. Make sure that you create your config database as something else, and make sure all the databases are different than what is on the first farm. Use GUIDs wisely. I don't recommend this approach though.


3

Yes, You can One Sql Server with two Different SharePoint Farm. Currently i have two Dev farm(2013) sharing the Same Database server. As long as you have unique Names for yoru Config & content DBs. Having Enough hardware to support both farm I am positive you will not do this in production, big risk. IF DB server goes down...both farm will go down.


1

All services Applications are farm level but you can manage them which Web App want to use it or not. When you create a visio graphics Services, it will added into Default Application Proxy Group. By default all Web Apps will consume this service. Now you have to change the Service Application Associations for Default Group and remove this Services ...


0

I was having this issue on SharePoint 365 so from SharePoint Designer I did the following: Selected List and Libraries Selected the list referenced in the error message Under Settings --> Advanced Settings unchecked the Allow Attachments * NOTE: THIS WILL DELETE ANY AND ALL ATTACHMENTS ASSOCIATED WITH THIS LIST - If you have attachments associated ...


0

The Mysite clean up timer job should remove the users disabled in AD assuming that your user profile service is configured to import only active users and mysite cleanup timer job is running. You can force remove the obsolete users using PowerShell as mentioned here: http://technet.microsoft.com/en-us/library/ff681014(v=office.15).aspx#RemoveObsUsers


0

In SharePoint 2010 the Visio Graphics Service gets enabled at the Farm level as seen in the following image (http://blogs.msdn.com/blogfiles/visio/WindowsLiveWriter/InstallingandConfiguringVisioServices_C8E3/farm%20config%200_thumb.jpg) and not at the Web Application level.


-1

see this : (storing the form based users in a SQL DB table) http://blogs.technet.com/b/ptsblog/archive/2013/09/20/configuring-sharepoint-2013-forms-based-authentication-with-sqlmembershipprovider.aspx


0

Setting Force attribute while installing a solution using PowerShell will help resolving this issue. That way, you don't need to manually uninstall features one by one. Example: install-spsolution -identity SOMEWSPNAME.wsp -force -gacdeployment -webapplication http://aissp2013


0

This error occurs since in SharePoint 2010 CSOM (V14) Where and GroupBy operators are not supported. Solution Replace the line: IQueryable<IGrouping<object, ListItem>> groupItems = contactItemsCollection.Where(i => i.FieldValues["Full_x0020_Name"] != null).GroupBy(item => item.FieldValues["Full_x0020_Name"]); with this one: ...


0

This question is off-topic in SharePoint context. To answer, these properties cause Side Effects and hence its not evaluated by design. A side effect occurs when evaluating an expression changes the value of data in your application. Side effects are something to watch for if you are evaluating expressions in the debugger. If you evaluate an expression in ...


5

The rest interface is not available to anon users by default. It can be enabled, but MS recommends against it. The preferred solution is to enable the search rest api for anonymous access, and retrieve all data that you need via that. A good article that explains the above in detail. Waldek's post that is a good explanation of how to enable the search api ...


0

You can change the type of column that your event descritpion is. If you change it to a Rich-Text enabled column, then you can style text, add pcitures and links and what-all else. To do that: Open your Event Announcement list. At the top ribbon, click the "List" tab. Click "List Settings" On the next page, you'll see your columns listed. Click on the ...


0

I found the feature ID in folder C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES There are 7 features for this solution. I use stsadm to uninstall all features, then I redeploy the solution: stsadm -o uninstallfeature -id "ID GUID" –force It works


1

Maybe use a blog instead and they can publish the content to the blog directly from Word and retain the look they have with no customizations necessary.


0

Couple of things: Make Sure Admin Services is running on all server in farm. Can you see the Solution from Central Admin and try to remove it from their? try to install with force feature. Is it Gacdeployment. Worst case Scenario( not recommended in Production), Manually delete the DLL from the Gac and also feature from 14/15hive. I did only once in my ...


0

You can use following URL to get users from a site group http://sitename/_api/web/sitegroups/getbyname('Owners')/users REST using OData protocol. So for pagination you can use $top and $skip


0

var clientContext = new SP.ClientContext.get_current(); var groupCollection = clientContext.get_web().get_siteGroups(); // Get a particular group var myGroup = groupCollection.getByName("MyGroup");


1

should be the same as: server side: SPGroupCollection groups = SPContext.Current.Web.SiteGroups; and client side: clientContext = new SP.ClientContext(); var groupCollection = clientContext.get_web().get_siteGroups(); its grabbing a collection of the current web groups.


0

I would define a service account as the account chosen to run the service, and managed account as an account managed by SharePoint. If you register an active directory account as a managed account in SharePoint, you can reuse the account for multiple services without having to re-enter the credentials, and SharePoint can even change the passwords for you, to ...


0

The Metalogix has a very cool tool. With this tool you can migrate lists, sites and others itens. See http://www.metalogix.com/Products/Content-Matrix.aspx See too http://www.metalogix.com/help/Content%20Matrix%20Cons


0

We have an internally built PowerShell that does this for libraries but doesn't take into account any metadata. My best bet would be to try a 3rd party software called Sharegate as it can take care of all your data, metadata included. We have used the software with 2 of our customers and it works like a dream. ( NOT employed by Sharegate )


-1

The Export-SPWeb command is available for your help http://technet.microsoft.com/en-us/library/ff607895.aspx another approach: SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite srcSite = new SPSite("http://srcSite1")) { using (SPWeb srcWeb = mrcSite.OpenWeb()) { SPList srcList = ...


2

Service accounts are accounts in Active Directory or you local system that are used by a Service (example: running the SQL Server Agent, Running the Search Crawler, ...). Managed accounts are Service Accounts in Active Directory or your local system that are managed by SharePoint (example: automatic password management). The difference between them is ...


2

SP.Site object exposes SP.Site.owner property to get or set the owner of the site collection. REST endpoint: http://<sitecollection>/<site>/_api/site/owner


1

SP Foundation does not include the User Profile Service, as @Aveenav noted. Therefore you probably do not have access to the REST endpoints for that service. Instead you will have to use the user information list to get this information. This will require two requets: one to get the current user's id, the second to get the user's info that you want. ...


0

1) Get all properties of current user: http://siteurl/_api/SP.UserProfiles.PeopleManager/GetMyProperties 2) Get single property of current user: http://siteurl/_api/SP.UserProfiles.PeopleManager/GetMyProperties/PictureUrl OR http://siteurl/_api/SP.UserProfiles.PeopleManager/GetMyProperties?$select=PictureUrl 3) Get Multiple Properties for the ...


0

For REST api, you could use 'GetMyProperties'. Use '$select' to retrieve only specific properties. the ajax method should be 'GET'. Here's a working example: $.ajax({ url: _spPageContextInfo.webServerRelativeUrl + "_api/SP.UserProfiles.PeopleManager/GetMyProperties?$select=DisplayName, PictureUrl", method: "GET", headers: { ...


1

Thanks for the help, unfortunately it didnt work for me since there where something wrong with my SP.Publishing reference. Instead I fixed it with this code: $(document).ready(function () { if (window.location.href.indexOf("_layouts") > -1) { $(".ms-breadcrumb-top").show() } else { $(".ms-breadcrumb-top").hide(); } } All ...


1

Well they should be same, specially when you are going to use Backup/Restore of site or Import/Export. If you are just going to prepare a WSP solution and use that in different environments, it should work but there maybe complications. Safe side, they should be same versions. You have two options: 1- Either you use External Content Types, External Lists ...


0

I'm using dual core E5550 + 8GB RAM to host SharePoint 2013, SQL Server 2014, Visual Studio 2013 (community). However this CPU should be stronger then any that can be found in notebook! Its doable, but slow. Especially accessing SharePoint via browser, takes minutes. Go for 4 physical cores (i5 or better), and think about putting more RAM - must be dual ...


0

If you mean i7-4510U, you'll be fine. It's got 2 cores, but each with 4 threads. 16 GB RAM is more important, and with SSD SP2013 will fly.


0

The SharePoint will run but you will get slowness. Some services, such as search, may not work. In the central administration you will have alerts on performance. But for development will probably meet the needs


1

For some reason, SharePoint Designer WF do not like sending emails to user and permission groups. One way to get around this is to create your email groups for your workflows in a separate list, then create a workflow variable to set the user names into the variable as a string. Then use the string as a collection of your user group names and set them as ...


2

This question resembles this other one: Call HTTP Web Service: Unauthorized Ideally, you should publish the code as a web service into SharePoint instead of an Application page (as that is pretty much the same thing without the proper infrastructure). Also, make sure you set the Header Dictionary into the proper property. SharePoint Designer misleads you ...


0

It is Not possible to upgrade from SharePoint foundation Trail edition to Enterprise. You need to install Enterprise from scratch.


1

Have you tried putting your workflow in Impersonation step. Impersonation step- here workflow will run on its publishers account. I am not sure of similarity between App step and impersonation step, in case they are same then change the user who publishes the workflow. I had issues with impersonation step, when I was publishing it with site collection ...


0

This was answered in Stackoverflow by "Mayo": http://stackoverflow.com/questions/1796875/sharepoint-send-an-email-to-users-specified-in-a-field I have limited experience with SP Designer workflows, but have you tried the email action with "Workflow Lookup" selected in the To field? This allows you to use specific fields from the submitted list ...


1

Check you are not using System Account for testing. Workflow will never start automatically with system account. Check the options Start workflow automatically when an item is created or changed from Workflow Start Options.



Top 50 recent answers are included