I have an enterprise wiki site collection inside our sharepoint on-premises 2013. and the enterprise wiki contain a server side remote event receiver which do the following:-
- when a list item is approved.
- the server side event receiver will create 50 wiki pages, based on 50 wiki pages which we are using as templates. it run as
now i am planning to migrate the enterprise wiki site collection to sharepoint online. but i am not sure how i should migrate the server-side event receiver, where i find these 2 approaches:-
- First approach is to use remote event receiver. but i am trying to avoid this journey as remote event receiver are very complex especially on how they are deploy/host/debug them.
- second appraoch i am thinking of, is to write a .net console application which run periodically and then host it inside azure. and then using CSOM code inside the console application, to check for new approved items and create the wiki pages accordingly. of course using the Event Receiver the wiki pages will get created automatically after the approval, but using the console application the user have to wait for the next iteration to run(which is not a big issue).
so can anyone adivce on these 2 approaches, or if there is a third appraoch ?