New answers tagged

0

I have Question.In above code if I change only one item field[Title] and other two keep as it is,then both field get blank. Only Title is Updating what Should I do?


0

It is not possible by using Sandbox or Farm solution. You can accomplish this using a workflow using AppStep. Please refer the link for creating the workflow using AppStep Or else try to refresh the page programattically at the end of the ItemAdded event.


0

You cannot get the item value in ItemAdding event. You can refer this BeforeProperties/AfterProperties in Event Receivers. You can get the Value in ItemAdded event. Let me know your thoughts. Thanks


0

As you said it yourself in the question that the item has not yet been created hence you won't be able to get the item using properties.Item. If you need to get the values of the columns then you would need to use properties.AfterProperties["ColumnName"] the statement SPListItem item = properties.Item would yield result for you in the ItemAdded event as ...


0

Just be sure to get the values from ItemAdded event. Because when ItemAdding, the current item is not updated in the list yet and you cannot get the item values. The reason why that the values are not available is because they aren't exist yet.


0

Started all over and did this instead, one for every different email to be sent. readonly SendEmailFieldsProperties _sendEmailFieldsProperties4 = new SendEmailFieldsProperties { Fields = new List<string> { "InternalName" }, EmailAddress = string.Empty }; public override void ItemUpdating(SPItemEventProperties properties) ...


2

If you go to Site Settings > Search Settings > Send queries to a custom results page URL, you can send your results to the Search Center using the Search Center URL property, thus: {SearchCenterURL}/results.aspx EDIT I believe the properties are as follows: Site Collection Search Center = SRCH_ENH_FTR_URL Site Collection Search Dropdown Mode = ...


0

We had this issue on our farm around the year ago.We bring MSFT folks jump in and finally a very easy solution. Restart the SharePoint Timer Service and Admin Service on all the server in the farm. So that old dll should recycle.


0

I usually use this to compare values in event receiver: public override void ItemUpdating(SPItemEventProperties properties) { // Valor anterior string anteriorCharter = Internal.esNulo(properties.ListItem["Charter"], "").ToString(); // Valor nuevo string nuevoCharter = Internal.esNulo(properties.AfterProperties["Charter"], "").ToString(); if ...


0

After opening a Case with Microsoft Dev Support I learned some interesting things about Emails and SharePoint. First of all, there are even more "hidden" functions in SharePoint which are not accessible as a .Net / SharePoint Developer than you might think. Inline Attachements or Elements which have the value "Content-Disposition: inline" are handled by ...


0

I managed to solve this by adding SequenceNumber and Synchronization in the Elements.xml file of the event receiver: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Receivers ListUrl="Lists/members"> <Receiver> <Name>MembersItemUpdated</Name> ...


0

Alternatively, look for references to System.Web in the .xaml and .csproj files and remove. This option was found by doing a comparison between the generated files in Visual Studio and what was provided in a working solution on GitHub (https://github.com/OfficeDev/SharePoint_SP-hosted_Add-Ins_Tutorials) provided for the MSDN tutorial series about ...


0

You can generate a CSV output of all event receivers, using this script I wrote: $wa=Get-SPWebApplication http ://SharePoint #susbstitute with your own Web Application. foreach ($site in $wa.Sites) { Write-Host "S" -NoNewline foreach ($web in $site.allwebs) { Write-Host "W" -NoNewline for ($LibIndex=0; $LibIndex -lt ...



Top 50 recent answers are included