I am having difficulty with the TO expression in a workflow.
SELECT(Users[USER_EMAIL],AND(IN(5,{[GET_URGENT]}), [KEY_PRAYER]<>TRUE, IN([_THISROW].[DPT_NO],{[DPT_NO]})))
in the Users table, GET_URGENT and DPT_NO are both ENUM LIST. That is why I am using the IN(). On the record trigger this workflow (Requests table), DPT_NO is always a single value, Type REF.
This is what the log shows. It appears my condition is working properly but the expression is not finding a match and I know there are multiple users that match my test record.
Thanks.
Properties:
{
âAppTemplateVersionâ: â1.000235â,
âRuleNameâ: âUrgent_Notification_Scope_11_by_DPT_NOâ,
âEventTypeâ: âChangeâ,
âInvokedByâ: âUpdateâ,
âServerNameâ: âINSTANCE-US-EASâ,
âServerRegionâ: âus-east4-gcp-prodâ,
âIgnoreSecurityFiltersâ: false,
âTableNameâ: âRequestsâ,
âRuleTableNameâ: âRequestsâ,
âOperationUpdateModeâ: âUPDATES_ONLYâ,
âEventMatchâ: âWorkflow event successfully matchedâ,
âConditionâ: â=AND([SCOPE_NO] = 11, [_THISROW_AFTER].[Urgent]=TRUE,[_THISROW_BEFORE].[Urgent]<>[_THISROW_AFTER].[Urgent], ISNOTBLANK([DPT_NO]))â,
âMatchesConditionâ: âTrueâ,
âActionNotPerformedâ: â1 errors present.â,
âActionResultsâ: âCreated 1 ActionResultsâ,
âAction Typeâ: âEmailâ,
âAction Nameâ: âUrgent Email Notificationâ,
âErrorsâ: âError: No workflow email was sent because âToâ, âCCâ, âBCCâ are all empty.â,
âEmailToâ: ââ,
âEmailCCâ: ââ,
âEmailBCCâ: ââ,
âEmailFromDisplayâ: ââRequests Appââ,
âEmailReplyToâ: ânoreply@appsheet.comâ,
âEmailPreHeaderâ: âUpdate to application âRequestsâ at â9/12/2020 9:43:04 AMââ,
âEmailSubaccountâ: null,
âEmailSubjectâ: âNew Urgent Prayer Request for Global Mobilization; Prayerâ,
âEmailTitleâ: âAlert: Update to application âRequestsâ table âRequestsââ,
âEmailAttachmentâ: ââ,
âEmailOtherAttachmentsâ: ââ,
âAppTemplateNameâ: â922dbed2-5196-4caa-9581-401fc815a472â,
âOperationâ: âWorkflow actionâ,
âResultâ: âFailureâ
}