Creating Delivery Endpoints via AFSDK

I've tried looking through various PI Square posts, and the AFSDK reference, but it seems to be a little more complicated to just add a new delivery endpoint. I'm assuming it's something simple, but can't see how i would do it.

Parents
  • Just so i'm clear, i'm sorry i wasn't before, this is where i was looking to add endpoints:


    pastedImage_1.png.png

     

    This is what worked for me:

    AFNotificationContactTemplate newEndpoint = new AFNotificationContactTemplate(myPISystem, stringName);
    newEndpoint.DeliveryChannelPlugIn = myPISystem.DeliveryChannelPlugIns["Email"];
    newEndpoint.DeliveryChannel.ConfigString = "ToEmail=myEmailAddress@site.com";
    newEndpoint.CheckIn();

Reply
  • Just so i'm clear, i'm sorry i wasn't before, this is where i was looking to add endpoints:


    pastedImage_1.png.png

     

    This is what worked for me:

    AFNotificationContactTemplate newEndpoint = new AFNotificationContactTemplate(myPISystem, stringName);
    newEndpoint.DeliveryChannelPlugIn = myPISystem.DeliveryChannelPlugIns["Email"];
    newEndpoint.DeliveryChannel.ConfigString = "ToEmail=myEmailAddress@site.com";
    newEndpoint.CheckIn();

Children
No Data