Are Remote Events Receivers still an Up To Date approach to follow

john john 946 Reputation points
2023-01-26T00:34:11.6966667+00:00

I want to run some logic after creating SharePoint online list items, the logic will be very complicated/lengthy to write inside Power Automate. so is creating a remote event receiver a valid approach to follow? i do not want to use Power automate, as the flow will be very lengthy . so are Remote Event Receiver a way to go for? or it is considered obsolete in a way or another?

Thanks

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,300 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,810 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 33,641 Reputation points Microsoft Vendor
    2023-01-26T01:46:22.5666667+00:00

    Hi @john john

    According to your requirement, I suggest you create a Remote Event Receiver. The code in an event receiver can be triggered when an item is added/updated/deleted. In SharePoint online, remote event receivers handle events in the SharePoint add-in model. The Remote Event Receivers are a capability introduced with the SharePoint Add-In model, and they target both SharePoint on-premises 2013/2016 and SharePoint Online.

    The Remote Event Receivers provide both -ing events, which are notified while something is happening, and -ed events, which are notified after something already happened. As such, a Remote Event Receiver can even cancel an event that is happening. The family of events that can be tracked are related to lists, items, sites, permissions, and many others.

    Here is a demo for you to reference

    Use remote event receivers in SharePoint


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.