Tag Info

New answers tagged

1

You can use: string value = (new SPFieldLookupValue(item["FieldName"] as String)).LookupValue


0

Sandbox solution should be activated first. Then there must be one of many Features part of the solution referencing objects, events, etc. contained in the solution. Activating this feature will deliver all items as specified in it.


0

The datasheet view was renamed to quick edit in SP2013, removing the ActiveX dependencies and migrating the implementation to html / js. There is almost no documentation about what you are trying to achieve, but I would give a try to spjeff implementation, who overrides the template implementation: ...


0

http://www.viewmaster365.com/#/Create/SearchFilter This kinda weird looking code in a Calculated Column set to datatype is Number will attach a KeyUp event to a DOM element above the search box, that way catching each keyup event. If you attach it to each TR (TableRow leave out the 3 parentNodes), it should work in a Datasheet View as well. =" <img ...


2

Turn on versioning for the library. Check the image's version in your ItemUpdated event receiver. If it's version 1, run your code. If not, skip the code. if (listItem["_UIVersionString"].ToString() == "1.0") { //do it! }


0

I finnaly found the solution. Problem was that no all fields was filled. What brings me to soluion was customization of DispForm for ListItem in my Discussion List. I found that there is some hidden field and one of them is EmailHeaders. I fill this field with all headers form email in format "{Name}:{Value}\n". And based on this field the relation to Email ...


0

Microsoft doesn't guarantee that the Remote Event Receivers will always fire, so it can be difficult to diagnose these kinds of problems to determine if its your code or SharePoint Online. What you really want is a way to see the SharePoint Online logs to see if there is an error. A previous Stack Exchange question, View uls logs for sharepoint online, ...


0

If anyone else comes across this issue, the fix is quite simple. Emails with other emails as attachments do not have a filename but rather the file name is stored as a header. See my code snippet below for how to access the filename. string fileName = attachment.FileName; if (fileName == null) { if (string.Equals(attachment.ContentType, ...


5

Deploy your feature to Web Scope and enable the feature on your subsite. Register the event receiver (element.xml) with: <Receivers ListUrl="Lists/test">


1

You can't do that. I'll put it in a simple way - Even Receivers are not aware of HTTP Context, so you won't be able to get the instance of the page which 'triggered' (not directly of course) the event receiver. You best bet would be to override the New Item form and assign custom code to Save action, where you would start the long operation and then do the ...


0

There is already a question on this: SPD 2013 Workflow cancel when using email action It is mainly because if the email id is not valid or concerned user is not valid and not because you had another customer event handler.


0

One approach is: 1) Create a content type 2) Attach the "content type" to one or more lists 3) Associate the event to "content type" programmatically Sample code to point 1: public static void agregarEventoTipoContenido(string clase, SPContentType tipoContenido, string ensamblado, SPEventReceiverType eventReceiverType, SPEventReceiverSynchronization ...


0

In the Elements.xml schema, you can have multiple Receivers elements. The receivers element have a property "ListUrl" that you can use to bind your receiver. <Elements> <Receivers ListUrl="lists/yourlist"> <Receiver> <Receiver> ... <Assembly>assemblydef</Assembly> ...


0

You can have one content type that is used in all lists and then attach the event receiver to this content type. This will solve your problem.


0

Item Added is an Asynchronous event receiver, so your workflow can run before the event receiver or after as well. This Question is same as yours posted here. It Says : Answer By : Chris O Brien If a list has workflows defined which are set to auto-start, these will always execute before any other 'ItemUpdated' or 'ItemCreated' event receivers ...


0

The root problem is that you need an information of the HTTP context from the inside of an ER (i.e. the UrlReferrer). HTTP context information is stored at the thread level... but if you use an asynchronous ItemAdded event, you run in a separate thread. Thus, one option may be to use ItemAdding or a synchronous ItemAdded. However, in case an item is added ...


0

Frustratingly simple... it took me a while but I got there thanks to this post: https://christopherclementen.wordpress.com/2012/04/30/get-field-value-during-an-event-handler/ I ended up using ItemAdded, but in order for it to add before the form loads I had to add: Synchronous <Receiver> <Name>EventReceiver1ItemAdded</Name> ...



Top 50 recent answers are included