The best way to create notifications is to use notification templates with the option "Automatically create a notification for each element, and start it" selected.
This way each time a new element based on the template is created, it will also create a corresponding notification.
If that is not an option for you, you can find examples in the AN SDK help file. See its location here: User Guides and Programming Help Files for PI Developer Technologies
Other resources that may come in handy:
Hi Anna, how are you doing?
Thanks for your answer and all links you sent me.
I need to understand better how PI Notifications templates works.
For while is being very time consuming every time I need to insert several PI Notifications at once.
I'll scrutinize the PI Notifications user guide a little bit more and any doubt I'll post here again
I edited my post a little bit and added more learning video links on PI Notifications. In the first two videos instructors show how to create notifications for every element of a target element template.
any doubt I'll post here again
Please do! :-)