Hello Team, Is there any way we can create popup reminder from workflow ?
Thanks in Advance
Thanks in Advance
<?php
$reminderId = Util::generateId();
$query = $this->entityManager
->getQueryBuilder()
->insert()
->into(Reminder::ENTITY_TYPE)
->columns([
'id',
'entityId',
'entityType',
'type',
'userId',
'remindAt',
'startAt',
'seconds'
])
->values([
'id' => $reminderId,
'entityId' => $entity->getId(),
'entityType' => $entityType,
'type' => $type,
'userId' => $userId,
'remindAt' => $remindAt->format(DateTimeUtil::SYSTEM_DATE_TIME_FORMAT),
'startAt' => $dateValue,
'seconds' => $seconds,
])
->build();
$this->entityManager->getQueryExecutor()->execute($query);
$id = record\create('Reminder', 'entityId', id, 'entityType', 'Call', type, 'Popup', 'userId', assignedUserId, 'remindAt', datetime\addMinutes(dateStart, -20), 'startAt', datetime\addMinutes(dateStart, -15), 'seconds', 900);
Comment