cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
501
Views
1
Helpful
3
Replies

Webex notifications

o1
Cisco Employee
Cisco Employee

How could I add the notifier to the user with their username in the notification message?

eg : I want to add user in my message such that user will get the notification - "@abc - Please check this IP". How could I notify user abc? 

1 Accepted Solution

You can @mention someone in your markdown message.

For example like this:
"Hi <@personEmail:banderson@example.com|Bobb>, please check this IP."

Or like this:
Hi <@personId:Y2lzY29zcGFyazovL3VzL1BFT1BMRS9mNWIzNjE4Ny1jOGRkLTQ3MjctOGIyZi1mOWM0NDdmMjkwNDY|Jose>, please check this IP."



You can use either personEmail or personID, whatever suits you best. Documentation for this is here; https://developer.webex.com/docs/basics#formatting-messages.

 

View solution in original post

3 Replies 3

o1
Cisco Employee
Cisco Employee

This is my function:

 

def testFunction(token, room_id, message
#Notifier.send_report_email()
header = {"Authorization": "Bearer %s" % token,
"Content-Type": "application/json"}
data = {"roomId": room_id,
"markdown": "TEXT message for Test @All"}
return requests.post("https://api.ciscospark.com/v1/messages/", headers=header, data=json.dumps(data), verify=True)
 
I want to notify @All - all users through my bot message

You can @mention someone in your markdown message.

For example like this:
"Hi <@personEmail:banderson@example.com|Bobb>, please check this IP."

Or like this:
Hi <@personId:Y2lzY29zcGFyazovL3VzL1BFT1BMRS9mNWIzNjE4Ny1jOGRkLTQ3MjctOGIyZi1mOWM0NDdmMjkwNDY|Jose>, please check this IP."



You can use either personEmail or personID, whatever suits you best. Documentation for this is here; https://developer.webex.com/docs/basics#formatting-messages.

 

Thanks Raffaele, appreciate your help!