Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [item-added]

The tag has no usage guidance.

0
votes
1answer
17 views

How to update list item column value in ItemAdded event receiver and get the updated value in the same event?

SP2016 event receiver: I have a requirement that on the itemAdded event I have to get the list item id and manipulate it and then keep it in another column. So, on the itemAdded event, I am getting ...
0
votes
1answer
150 views

Sharepoint Event Receiver Not Firing on ItemAdded

I have set up a local development environment on sharepoint for the sake of testing event recievers. I can build and deploy the following code. However when I deploy the following code it does not ...
0
votes
1answer
28 views

Save Conflict while adding a Content Type to Document Library

I am trying to add a new Content Type to a document library (Full trust solution). It works fine just adding it to an existing site, but when I try to create a Sub-Site I get a "Save Conflict" and the ...
0
votes
0answers
52 views

SharePoint Event Receiver: call ItemAdded after ItemUpdated?

I am moving a document in the ItemUpdated event from one library to another. I want to fire the ItemAdded event on the newly moved item in the second library. I've tried to do what I need in the ...
0
votes
1answer
600 views

Online Sharepoint - REST issue - Microsoft.SharePoint.SPException - Error 2130575251

I am trying to save file to Sharepoint folder. This is my code: public void saveFileToFolder(Folder folder, File file) { try { String token = getSPOIDCRL(folder.getSource()); ...
4
votes
2answers
169 views

How to stop Update event from firing when adding a document to a library

When adding a new document, both Add and Update events trigger my event receivers. I have an Add and an Update event receiver. Is there a way to avoid the Update event?
6
votes
1answer
158 views

ItemAdded event in Event Receiver

I have created an Event Receiver (Farm Solution) in SharePoint 2016 that triggers when an item is added in Task list. I have exclusively specified the ListTemplateId="107" in Elements.xml. This event ...
0
votes
0answers
45 views

change the permissions of spgroup from contributenodelete to read and retain other groups permissions as its

I have 2 groups namely NPD ADMIN and NPD SPUSERS AT THE DOC.LIb level, I have permisionss set as `NPD ADMIN` : `CONTRIBUTE` `NPD SPUSERS` : `CONTRIBUTENODELETE` I want to remove the existing ...
0
votes
1answer
33 views

Is it possible to automatically create a list item when a file is added in a folder on a computer?

I use a sharepoint site to deal with escalation tickets. I want to attach files to those tickets. BUT I cannot use the magical "attach files" parameters because files would be stored on sharepoint and ...
1
vote
1answer
190 views

No item exists at http://xxxx/Common/Forms/EditForm.aspx It may have been deleted or renamed by another user

When I am trying to apply an item level permissions for a uploaded document in my document library am getting the error: No item exists at http://xxxx/Common/Forms/EditForm.aspx?Mode=Upload&...
0
votes
1answer
27 views

Delete Custom Permissions is NOT working -getting error -site is not shared with you

i have created a event receiver on a doc lib with itemadded, itemupdated event receiver that provides permissions on the item for multiple groups and multiple users. for this i have created a ...
1
vote
0answers
445 views

No item exists at … It may have been deleted or renamed by another user in an item event receiver after applying item level permissions

Am writing an event receiver for which only the assignedto person or some special SharePoint groups are getting the access to the particular Item. this is written in my itemadded and itemupdated ...
1
vote
1answer
158 views

Add new itemeventreceiver methods in visual studio on top of existing event receiver

I have developed an item event receiver with itemadded and itemupdated event handler using VS 2013 against SP 2013 ON-PREM soln. Now as per my updated requirements, I need to add a new itemdeleted/...
4
votes
2answers
67 views

Automatically create HTML pages on adding an item in SP 2013 list

So I am very new to coding. Please bear with me. We have a SharePoint list wherein we store employee details. The task is to automatically create a new page with predefined UI -every time a new ...
3
votes
2answers
74 views

Apply item level permissions for multiple document libraries

I wanna apply item level permissions for 7 document libraries with different kind of permission levels for different groups. So, in order to achieve this, should i write 7 different sharepoint ...
1
vote
1answer
42 views

Hide Doc.Lib column from entering values while uploading a document

How can I hide a form from Displaying a custom field that is created in my document library ? Its a document library and I am updating this column through itemadded() eventreceiver. My issue is ...
0
votes
1answer
26 views

How to apply permissions for the curentlistitem using SP D 2013 workflow in SP 2013 On-Prem

Is it possible to apply permissions to an item that's added /updated? I heard that using an eventreceiver is costly and takes more deployment time and effort. Also am doubtful about this approach ...
3
votes
2answers
113 views

Remove All RoleAssignemnts Except Current Loggedin User

I have written code for removing all roleassignments for a splistitem using the itemadded() and itemupdated() eventhandler . But my requirement is how can I prevent the removal of currentloggedin user ...
1
vote
2answers
191 views

Trigger a workflow when an item is added and apply Permissions using ItemEvent receiver simultaneously

Scenario:As per my requirement I need to create a projectrequest form with NEW/Edit/Display. when I click on the add new item ,the new custom input form which is created using the SP DESIGNER 2013 - ...
1
vote
0answers
58 views

Trigger itemupdated eventhandler when an item is Added in an SPList

I have written an itemupdated event receiver for a SPList in my SP 2013 / VS 2013 solution [ on-premises] . Now I want to trigger this itemupdated event when the item is created in the SPList .But ...
0
votes
2answers
43 views

Item event handler for both SPLists and SPDocumentLibraries in one single VS 2013 solution in my SP 2013 ON-PREMISES

Is it possible to work on multiple list item event receivers and multiple document libraries itemadded/itemupdated event handlers in a single WSP/single VS 2013 solution? My requirement is to work ...
3
votes
2answers
216 views

Differences between SPItemEventProperties.SiteId & SPItemEventProperties.Web.Site.ID

I am working on an Event Receiver inside my sharepoint 2013. the event receiver will get fired when an item is Added and it is scoped at the Web level. but i am not sure if there are any differences ...
3
votes
1answer
271 views

After adding item redirect to the listview page

I have created a page in SharePoint 2013. This has a web-part which shows a list view of a custom-list. From this page when I add an item it redirects to the default list-view page. I want it to ...
0
votes
1answer
72 views

Add items to Sharepoint list from listview programmatically

I have a listview binded from a sql DB table with column1, column2, column3, I want to copy all the listview items in a sharepoint 2010 list column1, column2, column3 programmatically PS : ...
1
vote
0answers
118 views

Content length is 0 for HttpPostedFile object in Itemadding event

I have a item adding event attached to a document library and as per the framework you can't get the SPFile object in ItemAdding in an event receiver. So I'm using HttpPostedFile object to get the ...
0
votes
1answer
142 views

“Add New Item” Link on Page

My customer would like to move the "Add New Item" to the top of a list. How can I accomplish this without adding significant code to the site?
0
votes
0answers
380 views

Unable to update/access the field ItemAdded EventReceiver

am using itemadded event receiver to updatea field when end user uplaods a document in the document library. i have associated content types as well with the doc.lib.Now when i am trying to access ...