Questions tagged [event-receiver]
140 questions
0
votes
1 answer
Force reload Image when url changes SwiftUI
New (to swiftui), I would like to display an image(refresh the view) as soon the url is ready .Apparently State var isn t enough . It seems like .onReceive and a publisher might help but i iam helpless .
NB : i use KingFisher but it seems to be the…

it75
- 125
- 10
0
votes
1 answer
Remote Event Receiver-How to get attachment of list item before updating or adding list item
I want to add restriction to upload only one attachment in list item. I implement attachmentadding event, but if user delete the second attachment, I am not able to get the latest attachment count.

user9989023
- 11
- 1
- 4
0
votes
0 answers
SPWebApplication.WebConfigModifications.Count return zero when invoking in featureActivated?
I am going to modify web.config in an event receiver project SharePoint 2016. I use this piece of code in FeatureActivated function to get access to the web.config to modify it:
SPWeb myWeb = properties.Feature.Parent as SPWeb;
…

hossein hashemian
- 311
- 2
- 11
0
votes
2 answers
feature deactivation through command line not firing the SPFeature event reciever
I am deactivating a feature through stsadm tool. I have an event reciever enabled for this action. If i deactivate the feature manually from the site the event is getting triggered but not when running stsadm command.
Please help...
Here is the code…

Shankar
- 448
- 3
- 9
- 34
0
votes
1 answer
How to copy a text file from a module to a document library that is not created, in SharePoint event receiver?
I have a text file in module and I need to copy that file to a document library that is not existed yet, and it is going to be created in featureActivated. What should I do in this situation?

hossein hashemian
- 311
- 2
- 11
0
votes
1 answer
Why It did not come into ItemAdded function When using RunWithElevatedPrivileges for limited access users in eventreceiver?
II have an event receiver of a list and do some updates in another list in ItemAdded function. since, It does not work for limited access users, so I try to use
SPSecurity.RunWithElevatedPrivileges for giving access for such users. But It still does…

hossein hashemian
- 311
- 2
- 11
0
votes
2 answers
why RunWithElevatedPrivileges does not work in itemAdded eventreceiver?
in my eventreceiver project, itemAdded function, my code is going to add item to a second list but it is not working for some user with low privilege
SPSecurity.RunWithElevatedPrivileges(delegate ()
{
using (SPSite site =…

hossein hashemian
- 311
- 2
- 11
0
votes
1 answer
Use client side rendering(js link) for dynamically created Sharepoint document library
I want to use client side rendering(js link) for document library, the challenge for me is Sharepoint document library will be created dynamically when the remote event receiver triggers.
I know we need to pass js link reference in elements.xml…

Surendra Mourya
- 593
- 3
- 8
- 29
0
votes
1 answer
Sharepoint using event receiver
I have a requirement from the client to show the percentage of the column value out of the sum of the column just like the picture below with out the widget. preferably I want to use JS link in sharepoint. please let me know if this is something we…

Mohammed Mohammed
- 43
- 10
0
votes
0 answers
Pulling information into xml file for each user
I want to make my database pull information for each user for example in a link like www.example.com/user/22/xml
I want to pull information from my database and into that XML file that way I can basically put a snippet on another website an pull…

Vince Begin
- 1
- 2
0
votes
1 answer
SharePoint Add Days to a Date Field Using C#
I am currently using an event receiver in a SharePoint site meant to onboard new employees. New user info is entered into a list called "New Hire Profile" and a second list called "Access Profile" is created based on the new hire profile list. There…

initech
- 3
- 2
0
votes
1 answer
SharePoint online - intercept document request when document clicked
I am working on this project where it includes hosted app with SharePoint online and a dozen of other things.
When they built the project, they implemented a functionality that does this :
When a user goes to a document library, and clicks on…

RAYash
- 30
- 4
0
votes
2 answers
associate 1 event receiver with 2 document libraries
I have an item updated event receiver that I would like to associate with only 2 document libraries.
Earlier I had associated the event receiver with ListTemplateId="101". So this event receiver was firing for all document libraries! which is…

Amar
- 27
- 1
- 9
0
votes
0 answers
start workflow 13 on event receiver item attached
I am using the same code to trigger 13 workflow form item attachment event receiver ,but i am getting null in (SPWorkflowAssociation associationTemplate) in case of 13 workflow template ,while successfully able to trigger 10 workflow template.
Can u…
0
votes
1 answer
How can I access to SharePoint builtin alert me definitions (to user defined alerts) by web service or database query
I don't want to customize alert me in SharePoint
like this link
But I want to get alerts properties like:
I want to know that Alerts defined on which list or Doc-Lib?
When they want (email or SMS?) (immediately or everyday they want to SharePoint…

saber tabatabaee yazdi
- 4,404
- 3
- 42
- 58