Best way to check if SPListItem have been publish, on an ItemUpdate EventReceiver
-
08-12-2019 - |
Pergunta
I have an EventReceiver associated to DocLib template id, triggered at every ItemUpdate. Everytime an SPListItem is publish I want to execute my code.
(Required check out and Content approval are turned off)
So, is the type ItemUpdated the best one in this case? What the best way to check if item was publish?
spregards
Solução
In ItemUpdated check
properties.ListItem.File.MinorVersion == 0
Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange