how to combine text with multiple tags in one attribute?

Hi,

 

I’m using web service in PI AF and I want to pass value for content email notification. I need the way of how to store email content into one attribute, the email content is combine between text and tag references.

 

I’m thinking to copy email content with thier tags refernce attribute into one attribute , but I need the way to store into one attribute.

  • Why you are not using Analytics and Notifications

    in PI Asset Framework (PI AF)??

  • Can you please elaborate more, the notification rule we already set also the delivery endpoint.

    We need to integrate notification trigger into sql server table to have own management notification , so we have done the webservice and we need to pass some information like email content which I have challange to integrate it.

  • May I know what kind of email content you want to push to your custom system? You can send email form either AF notification or from your custom web service system (by using information from notification end point of REST / SOAP).  

    Since you already have a webservice, you can either use a REST or SOAP endpoint to subscribe to your web service and push notification from AF. You just have to push the required data from the notification endpoint to your web service and your custom web service just inserts the data to the database. You can write separate code to build the message and send out email in different ways either in database trigger or in web service.

     

    *** I think the easiest way for you is just get the data from AF notification via REST/SOAP and build the email msg on the web service to insert it to the database or send out email. I don't know what kind of email content you have in AF.

     

    See the following documents. It is the same as sending out an email notification.  

    Configure a REST web service delivery endpoint (aveva.com)

    Configure a SOAP web service delivery endpoint (aveva.com)

     

    Regards.

  • Thank you for clear explaination, let me explain what I did in more detail.

    I have created API and it has many parameters that need to get from AF, I have configured webservice in AF and work successfully.

     

    so the issue is I have one parameter in API which is Email Text, this email text is already configured in notification rule and it's contains (string and tag reference).

     

    What I want is to have the way to integrate this email text to webserice. I'm thinking to do that in string builder, but if there other best solution to refer directly from email text will be good since there is no attribute I can refer in AF webservice.