AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() ![]() ItemType of type ChangedItemType (Indicates the type of ChangedItem objects to return) Following are the possible values of Enum. StartTime of type DateTime (A UTC time indicating the earliest change to be included in the result collection) There are four overloads available for GetChanges method, the one I used have following parameters – In above example I was looking for deleted term in previous number of days (past 1 day in above example). $deletedTerms = $termStore.GetChanges($dt, ::Term,::Delete) Method documentation at TermSet.GetChanges Method What a wanted to achieve is to set the term ‘Uncategorized’ to the list item whose original term got deleted. This solution worked well and I have created a PowerShell script which checks TermStore for any deleted terms after specific interval which is configured in task schedular. I initially thought there may be definitely some direct solution exist for this kind of requirement but unfortunately no synchronous event receiver available which trigger immediately after term got deleted from termset.Īfter some research I came across a method ‘GetChanges’ which is available at TermStore and TermSet both. Recently I came across a requirement where I need the deleted event receiver on managed metadata service. ![]()
0 Comments
Read More
Leave a Reply. |