PDC alert notification through webex

Hi All,

We have a requirement of sending critical pdc alerts as notification to webex bot. Can anyone suggest how to proceed with this requirement.

Thanks & Regards,

N Prasad.

@PrasadN16719109 To send critical PDC alerts to a Webex bot, follow these steps: First, create a Webex bot by visiting the Webex Developer portal, where you can register a new bot and obtain its access token. Next, set up a Webhook in Webex that listens for messages or specific events from your bot. Then, in your PDC alerting system, configure it to send HTTP POST requests to the Webex Webhook URL whenever a critical alert is triggered. You may need to format the alert message in JSON to match Webex’s API requirements, including details like the message text and room ID where the bot should post the alert. Additionally, ensure that your server handling the alerts can authenticate with Webex using the bot’s access token for secure communication. Test the integration by triggering a sample alert to verify that the message appears correctly in Webex. If needed, implement error handling and logging to monitor the alert delivery process. Finally, document the setup and provide access permissions to relevant team members to maintain and troubleshoot the system effectively. This approach ensures that critical PDC alerts are promptly and reliably delivered to your Webex channels, enhancing your team’s responsiveness and system monitoring capabilities.

@Sairohith Thanks for your help. We have achieved our requirement using your comments. We need to attach pdc event link to the webex message. Please let us know is there any way to attach the link. Through outlook we know pdc automatically attach event link. Thanks in advance.

Thanks & Regards,

N Prasad.

@PrasadN16719109 To attach a PDC event link to your Webex message, you can include the URL directly in the message text by using Markdown formatting, which Webex supports. First, update your message payload to include the event link using the format View Event. This makes the link clickable, similar to the automatic attachment in Outlook. Replace the example URL with the actual PDC event URL you wish to share. Next, ensure that your JSON payload for the POST request to the Webex API contains this formatted text under the “text” field. Test your implementation by sending a sample alert to verify that the link appears and functions correctly in the Webex room. If the link does not render as expected, check the API documentation to confirm that Markdown is enabled for your messages. Additionally, verify that any special characters in the URL are properly encoded to avoid errors. This approach should seamlessly integrate the PDC event link into your critical alerts. Finally, adjust your alerting system as needed to include other necessary details alongside the link.

@Sairohith Thanks for the suggestions. We have implemented this and its working fine. But we are getting exception when there is no pdc alert whenever data page runs. We are getting Excepiton occured while mapping response to response_GET. This we are getting as it is trying to map a page property with 0 results. Please provide fix for this issue.