New answers tagged

0

This may help but I am using this code in a SP Online. var strFieldName = "FieldName"; var ppDiv= $("[id$='ClientPeoplePicker'][title='" + strFieldName + "']"); var spPP = SPClientPeoplePicker.SPClientPeoplePickerDict[ppDiv[0].id]; spPP.AddUnresolvedUserFromEditor(true); if (!spPP.HasInputError) { var userKeys = ...


0

Debugging causes these errors to throw. Do E in PF12 and select the "Never break on Exceptions" option. Problem goes away!


0

public override void ItemUpdating(SPItemEventProperties properties) { base.ItemUpdating(properties); sendItemTolist2(properties); } private void sendItemTolist2(SPItemEventProperties properties) { SPSecurity.RunWithElevatedPrivileges(delegate() { SPWeb webPropertiesListItem = ...


0

This is most probably because you created the columns in your custom list using the grid view, correct? When you do this, SharePoint assigns these kinds of internal names to your columns, ym4b and rq0x etc. Your 'new' API call is returning with the internal names of the columns. Your 'old' API call is returning with neither the display nor the internal ...


0

Those are the type of randomized names SharePoint generates when you create columns using the "Add Column" button in the "Edit this list" view. You see this differently in the new _api endpoint than in listData.svc because the _api endpoints use internal names and listData.svc endpoints use display names for the JSON data member names. You can avoid these ...


0

Using Designer Workflow on item create: Call a REST query with the current item id: lists/getbytitle('Custom%20List')/items(1)/attachmentfiles Loop through each attachment and add the url of it in multiline text column in the same list. Send the email with the column in it.


2

SharePoint API has class and function SPContentTypeUsage.GetUsages that returns all content type usages in site collection. Is MSDN article there is an C# sample too. Also look at the accepted answer in this question . The answer is in PowerShell.


0

I didn't do any of that. I figured out that I had to the create the column in my list first and then opened up Customize Form (in the list). I was then able to drag the field to my form (fields that were now listed in the fields box). I must not be really understanding the issue above if it was that easy. :)


0

If you want to change the list column width, you can give the html code as a formula. =<div style=width:"20px"> Like this you can change the appearance of the list by using the html code in the formula Hope you got an idea from this.


0

Using the declarative (XML) based approach to create fields has always frightened me, and here's a new reason. I really encourage people to use a pure imperative/C# approach (when possible, i.e. very often): creating a feature event receiver with code that creates artefacts by the mean of the server-side OM. That way, you control exactly what happens ...


0

While creating a list column, you can give the below formula to change the list html property. ="<DIV style='color:yellow'></DIV>" The above code will change your column background color as yellow. Like this you can alter the column html properties. Hope it resolves your problem.


0

An indexed column in SharePoint makes sense to improve performances. If your list contain a lot (~1000s) of records, and you often query (filter or sort) by a given column, you can index that column. That way, when displaying a filtered/sorted view (based on this column), SharePoint does not have to loop throuh all the items to decide whitch ones to display ...


0

Could you please goto the workflow and write in logs for each workflow variable created by you.This would help you in know as to which workflow variable has been set null and that would help in resolving the issue. Thanks Bhism


0

When I see things like this, in our environment, it us usually a timeout issue. Too many workflows kicked off at once, or too many open workflow causing a step to take longer than expected so the value hasn't arrived before it is requested. If this could be the case, comment here and we can look at some options.


0

If you have some custom SPD-workflow activity in that workflow and the programmer that created or recently modified that custom activity used this (http://blog.symprogress.com/2011/01/spd-2010-custom-workflow-activity/) tutorial to do that... then you should revise any usage of that custom activity in failing workflows - third argument could be not set


0

One way to approach this is with CSR (see Atish Dipongkor's answer). Another way would be overwriting the CSS with a content editor. See the answer/comments of this question.


0

You can use Sharepoint Designer for this. SharePoind Designer > Site and Libraries > Right click the View > Edit File in Advanced Mode Conditional Formatting in Ribbon There you find your settings. For example: http://blogs.msdn.com/b/balsharfi/archive/2011/10/20/sharepoint-lists-conditional-formatting-using-sharepoint-designer-2010.aspx


3

In SharePoint 2013, You can try Client Side Rendering. You just need to override the display template of FirstName. For example, Templates: { Fields: { "FirstName": { View: function(ctx) { var FirstName = ctx.CurrentItem[ctx.CurrentFieldSchema.Name]; return "<span style='color :#f00'>" + ...


0

Are you trying to send email from your workflow? If this is what you are doing, then I faced similar issue. Here is how I resolved it- Note the user to whom workflow is sending email. Go to Central Administrator. Under User Profile Synchronization Service search for the user you noted in step 1. Look for its email attribute. If it is empty, then this is ...


0

If you are looking to use a lookup column and want to filter the results I would suggest using SPServices. Specifically you would be using $().SPServices.SPFilterDropdown. Description from codeplex: The SPFilterDropdown function allows you to filter the values available in a Lookup column using CAML against the Lookup column's source list. This ...


0

You need to select your item that you want to update in your this list item (action). E.g.: I am updating a List Item and using Current item for that. Select this list option Select List (in my case "current item") Add Select field that you want to update Select / Add value that you want to update (which as well can be another list item or a text ...


0

Use the set approval status to ... action in your workflow. Do not forget to allow workflows to read and write items, by activating the appopriate feature in your site preferences.


1

You can link your SharePoint list to an Access database and create SQL to update the data. See here: Connect your Access 2013 Web Apps to SharePoint Lists


1

You could have a list with all of the information you need and also have a document library for the documents. In the document library have a column that is a lookup to the Sharepoint List so that you can relate the documents to the list item (or to multiple items if you use a multi picker). The benefit of using this method over Eric Alexander's is that you ...


1

You have multiple ways to achieve this: Approach 1: Create a custom permission level with access only to create item and not delete, edit. Break permissions if you want no one to edit the item. Create a SharePoint Group and add users who are supposed to create items in the list or library. Now only users will be able to create items and not able to edit ...


0

Create a simple SharePoint Designer workflow to remove permissions from the item. Use the Replace List Item Permissions to remove contribute access and replace it with read access.


0

You should be able to set up a permission level which only allows users to Add items. Just make sure Edit Items, Delete Items, etc. isn't checked when creating the permission level.


5

That isn't the way SharePoint works. Lists and libraries are the 2 basic storage mechanisms for things. You either create an entry (list) or upload a file (library). If you want to upload files to a list, it has to be as an attachment to a list item. You can't upload a file to a list in any other way. Otherwise, you need to upload the file to a document ...


0

Take a look at the Issue Tracking app for SharePoint 2013. For 2010, create an Issue Tracking list. References: http://www.lynda.com/articles/sharepoint-issue-tracking-app http://techwirenews.com/2012/09/29/using-issue-tracking-in-sharepoint-2010/


0

One option that probably does meet your need is to create a workflow to set item lever permissions. I'm not very sure, but you might even be able to set the permission based on lookups from another list: http://spcycle.blogspot.nl/2012/01/how-to-create-workflow-to-change-item.html This would be a totally secure method, however using item level permissions ...


0

If you're in a Custom List, you can go into Advanced Settings and change the Item Level Permissions settings. The options here configure whether your users can see all items, or see just items created by them. You can also set the creation rules here; whether a user can create and edit all items, create items and only be able to edit their own, or not have ...


0

I apologize if my response doesn't quite meet your needs, but your request is missing some information. Here are the assumptions I am making based on your post: "I have a list for of items added by users" - I assume you are working in a document library "I want that user can only see the item added by them." - By them, I assume that an uploader can only ...


0

Create a View and give the Filter Section as Created by [Me]. In this way only those items which are created by login user will be visible to them. For Approver you can create a Separate view with no filters and provide the URL to Approvers. If the approvers are accessing the list via a workflow email, you can always provide the view url in the Email body. ...


0

While SharePoint is typically backed by a SQL Server database, the SharePoint platform is not a traditional database and thus does not provide features like composite keys for list item identifiers. You are correct that you would need to add this type of functionality yourself and one such way is event receivers. Event receivers would work because they ...


1

If you want to get custom templates you have to use context.Site.GetCustomListTemplates() instead of context.Web.ListTemplates public static ListTemplate GetCustomSiteTemplate(ClientContext ctx, string templateName) { var site = ctx.Site; ctx.Load(site); ctx.ExecuteQuery(); ListTemplateCollection ltc = site.GetCustomListTemplates(ctx.Web); ...


2

Declaratively (with elements.xml), you can attach an event receiver (ER) to a content type (CT), meaning all items in all lists of the site based on this CT will have the ER. This can be done from the CT declaration XML itself, see for instance Event receiver attached to content type via XmlDocuments ignored? or the XML block in this MSDN article. But my ...



Top 50 recent answers are included