0
votes
0answers
19 views

Renaming document gives file not found on uploaded documents

Im trying to do a seamingly simple task in SP 2013. when the user either Creates a new doc (Ribbon>Files>New Document) or Uploads a File i want them renamed to for example ...
0
votes
1answer
21 views

Rename Document Set item while creating - problem with page redirection

I need all document set items to have following name: " - My Doc Set Item". So I added following code to ItemAdded Event Receiver: properties.ListItem["FileLeafRef"] = ...
0
votes
0answers
28 views

List item event receiver firing when list is modified

If I have an event receiver that handles the item added event, it fires whenever the list is modified. While debugging the event we see that it is firing over a non-existim item (properties.ListItem ...
0
votes
1answer
29 views

Event receiver on user log in

I'm trying to make a feature to assist with user provisioning. Our users don't exist in our domain until they register, at which point they're sent directly to SharePoint. I'm trying to populate ...
0
votes
2answers
21 views

Event Receiver Timing?

I have an event receiver that listens on three lists. When I save Data in my applications, about 7 elements are changed, so the event receiver has to start 7 times. Inside the ULS-log I can see the ...
0
votes
2answers
60 views

ItemAdded Event Receiver on Explorer View Firing Multiple Instances when Moving Item

I have an event receiver which works fine (triggering only once) when I drag and drop a file to a document library. It also works fine using the upload button, it will trigger twice as there are two ...
0
votes
0answers
22 views

why file.move fires itemadded event in an event receiver and creates a new file if I click on save button two times?

I have an event receiver where I change the name of the file,it works right but If I click two times the record button (this is used in an infopath form) a new item is created and an itemAdded event ...
1
vote
0answers
66 views

Event receiver not firing when item added by workflow

event receiver not firing when item is added by workflow. Its working perfectly when we manually add item to list. I am using SP Designer 2013. When we add item through workflow, it shows that item is ...
1
vote
2answers
44 views

Best practice for autonumber

What is in SharePoint 2013 on premise the best way to create an autonumber system? It's for an expense note system and it should be nice to have something like 2014/0001. I know there are different ...
1
vote
2answers
1k views

Get selected value of dropdown choice list item

I'm trying to get the selected value of a dropdown list item. Nothing works. SPFieldChoice dropdown = list.Fields["Admin Guide"] as SPFieldChoice; var choices = dropdown.Choices; var selection = ...
1
vote
1answer
348 views

How to programmatically hide a field from edit form based on current user permissions

I have an event receiver that sets SPField values based on certain user choices. I'm trying to show/hide one field based on the current user's signed in permissions, but only when the list item is ...
3
votes
1answer
209 views

Is it possible to wait until my file is uploaded in document library?

I have created a document library and I have applied an Item Added event receiver to that library which will copy that file to another library and I have added that library as a mapped drive to my ...
0
votes
1answer
572 views

When item added event receiver fires if we upload file using explorer?

I have a document library in which I have attached two event receivers. Item Added. Item Updated. My event receiver definition is: <Receiver> ...
0
votes
2answers
265 views

SharePoint 2013 Before and After Properties ALWAYS null

I'm unable to get properties.AfterProperties and properties.BeforeProperties. public override void ItemUpdating(SPItemEventProperties properties) { Validate(properties); ...
3
votes
1answer
164 views

Custom master page will not locate spfont file

I have a project that has a custom master page created from seattle.master. The only change in the .master file is the addition of a <SharePoint:ScriptLink> tag pointing to a copy of d3.min.js ...
0
votes
0answers
34 views

Stop NewDocSet redirection on error

Is there a way, flag/property/bribery, to stop the code-behind in newdocset.aspx from redirecting on error? I have been trying to get the error to appear on newdocset.aspx; the same way as ...
0
votes
0answers
27 views

add object to farm properties from an event receiver

Can you add an object to farm properties from an event receiver on a list in a root site or a site collection? I have tried but even if im logged in as a farm admin it always errors out with a ...
0
votes
1answer
306 views

How to deploy ItemAdded event receiver to the entire farm? [duplicate]

I have created an ItemAdded event receiver that is supposed to process new documents/files after they've been added to any document library in the farm - i.e., I'd like the event receiver to ...
0
votes
3answers
1k views

sp2013: error: Your changes conflict with those made concurrently by another user

I have an sp2013 portal. I have a custom contenttype and a custom list. I have an eventreceiver (ItemUpdating) which is updating a column in the current listitem. Sometimes I get this error. I think I ...
1
vote
1answer
664 views

Unable to get user field value in event receiver's afterproperties

I have a document library in which there is one field approver (multi - value). There is an event receiver for item updating of the document library that I want to validate user while changing the ...
0
votes
0answers
100 views

SPD13 Workflow - Only site admin can start it

I've put together a mildly complex workflow that is supposed to be able to be started by the average user making a change to a list item. However, my admin account seems to be the only one that can ...
0
votes
1answer
662 views

Unable to get event receiver to work with Document Library

I have created a Document Library named Attachments Library. In the library I have created an additional mandatory column of File Details. I intened to use this field to capture some metadata about ...
3
votes
1answer
697 views

Unable to find Event Receiver template in Visual Studio 2012

This would probably be right under my nose but I am having a hard time finding it. I am trying to create an event receiver in Visual Studio 2012. From this video in YouTube I gather that in Visual ...
0
votes
1answer
238 views

How to insert new line in the SharePoint error message?

I have written a code in event receiver which validates the user entered. My code is complete but the message I want to pass comes in the sinle line. I want to display the message in multiple lines. ...
0
votes
1answer
133 views

Is it possible to find how many times event receiver fired in code behind (SP 2013)?

Is it possible to extract information how many times did event-receiver fired on list per "action"*. Let say I have list with ten list items on it. User wants to delete three of them. What I'd like ...
1
vote
1answer
134 views

Save conflict error when handling user deletion from group programmatically

I have a site in which unique permission group are there. I want to update the list item as per the changes made in the user group in site, i.e. if user is removed from the site user group then the ...
0
votes
3answers
466 views

Create Subsite in OFFICE 365

I want to create Subsites based on some custom list in OFFICE 365. It is one time job. I am planning to have one customlist which will contain title,template,inherit permision flag,inherit master page ...
1
vote
0answers
58 views

Can I access the Sharepoint 2013 event model without enabling application sideloading?

Note: originally posted on stackoverflow, just registered here. My goal is to initiate some custom processing external to our Sharepoint 2013 installation when a document is added to a specific ...
0
votes
0answers
86 views

Cant get items from external list

I have an External list based on an External Content Type that is connected to Dynamics CRM. In an event receiver (C#), I successfully get an SPList instance that is able to print the 'Title' and ...
0
votes
5answers
2k views

Unable to get values in Item Added event receiver

I have created an event receiver which will be executing after the item is added to the list. I want to make the sub site based on the values entered in the list. My event receiver code is: ...
2
votes
0answers
61 views

Change logic for event receivers in an already deployed solution

I have a sandbox solution that has list schemas, visual web parts, custom pages and actions, workflows and a couple event receivers. Yes, one big mess of a thing, but I needed to pack everything up in ...
0
votes
1answer
3k views

SharePoint 2013 Event Receiver on Custom List Definition not firing

There is custom list definition and I have attached an event receiver on ItemUpdating of list instances from the custom list definition. For some reason, the Event Receiver doesn't seem to fire at ...
1
vote
2answers
1k views

Redirect in Event receiver SharePoint 2013

My question was simple in SharePoint 2010 but in SharePoint 2013 is complicated! In 2010 I could redirect user by setting properties.Status and properties.RedirectUrl. Now RedirectUrl and ...
1
vote
0answers
145 views

Using the SocialFeedManager object in remote event receiver

I'm trying to create a remote event receiver that will update the social feed of a user when ever he adds an item to a list on SharePoint Online. I've initiated the client context object using the ...
2
votes
0answers
394 views

List event receivers not triggered after quick editing/grid editing

I have a custom Sharepoint 2013 list with event receivers attached to it (adding, updating, deleting). However, it looks like the event receivers are not triggered when the user is adding/editing in ...
1
vote
1answer
64 views

Find a specific field on a site and the set it to “Required” in a EventReciever

I have created a EventReciever that will be activated when a site gets created. This site have a announcement webpart. When they click on "add announcement", newform.aspx pops up as a dialog and there ...
2
votes
1answer
2k views

Event Receiver on SharePoint-hosted Apps

Is it possible to create event receiver or workflow on SharePoint-hosted apps in SharePoint 2013? I have not much knowledge about SharePoint apps. If yes then how to create it... Can we use Remote ...
0
votes
1answer
302 views

Can't use SPItemEventProperties ListItem on ItemAdded in Event Receiver

I'm using event receivers to modify some of the inputs in a SharePoint 2013 site. They are fairly straight forward, here is a simple example public override void ItemAdded(SPItemEventProperties ...