Skip to content

Commit 5a91e95

Browse files
JesuTerrazJesus Terrazas
andauthored
Retrieve "additional_properties" from Entity (#48)
* Change model validation to Entity type * revent to retrieving "additional_properties" --------- Co-authored-by: Jesus Terrazas <jterrazas@microsoft.com>
1 parent a9799a8 commit 5a91e95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/models/agent_notification_activity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, activity: Activity):
2121
entities = self.activity.entities or []
2222
for ent in entities:
2323
etype = ent.type.lower()
24-
payload = getattr(ent, "properties", ent)
24+
payload = getattr(ent, "additional_properties", ent)
2525

2626
if etype == NotificationTypes.EMAIL_NOTIFICATION.lower() and self._email is None:
2727
try:

0 commit comments

Comments
 (0)