Trigger on update when changed only desired XML tag.

  • Hello!

    I have a task to configure for the Skype for business database logging of user status changes (Available/Away/Offline/etc).

    i found source for this data in XML field with content like:

    <state xsi:type="aggregateState" lastActive="2023-03-06T11:40:14" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2006/09/sip/state"><availability>15500</availability><delimiter xmlns="http://schemas.microsoft.com

    can you help me with trigger, that will log to history table status change only if was changed XML substring like: <availability>15500</availability> -> <availability>19000</availability> or <availability>15500</availability> -> <availability>13000</availability>

    but not:

    <state xsi:type="aggregateState" lastActive="2023-03-06T11:40:14" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2006/09/sip/state"><availability>15500</availability><delimiter xmlns="http://schemas.microsoft.com

    ->

    <state xsi:type="aggregateState" lastActive="2023-03-07T11:40:14" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2006/09/sip/state"><availability>15500</availability><delimiter xmlns="http://schemas.microsoft.com

  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

  • This was removed by the editor as SPAM

  • This was removed by the editor as SPAM

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply