fix: get metadata email if exists
All checks were successful
Build / Build-and-ng-test (pull_request) Successful in 5m4s
Build / Build-and-test-development (pull_request) Successful in 9m53s

This commit is contained in:
Henrik Forsell
2025-02-26 12:19:58 +01:00
parent 85aa3b38b7
commit 1bd0eef913

View File

@@ -96,6 +96,8 @@ data work.emails;
/* get email from metadata if not in input table */
if metadata_getnasn(uri,"EmailAddresses",1,emailuri)<=0 then do;
putlog "DCWARN: " alert_user " has no emails in MPE_EMAILS or metadata!";
end;
else do;
if metadata_getattr(emailuri,"Address",user_email)<0 then do;
putlog 'DCWARN: Unexpected error! Valid emailURI but no email. Weird.';
end;