Skip to content

Commit b29846e

Browse files
Update scheduled-jobs.md
1 parent 1a85374 commit b29846e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/communication-services/how-tos/router-sdk/scheduled-jobs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ if (eventGridEvent.EventType == "Microsoft.Communication.RouterJobWaitingForActi
152152
{
153153
// Perform required actions here
154154

155-
client.updateJob(eventGridEvent.Data.JobId, BinaryData.fromObject(new RouterJob()
155+
client.updateJob(eventGridEvent.getData().toObject(new TypeReference<Map<String, Object>>() {
156+
}).get("JobId").toString(), BinaryData.fromObject(new RouterJob()
156157
.setMatchingMode(new QueueAndMatchMode())
157158
.setPriority(100)), null);
158159
}

0 commit comments

Comments
 (0)