Flow Designer Run-As Problem

jlaps
Kilo Sage

I am using Flow Designer to ingest an emailed report. When I "TEST" this in Flow Designer, it works with no problem. The problem I am having is when the email is grabbed, even though I have the RUN AS set to SYSTEM USER, the flow instance is getting blocked when trying to get the EMAIL ATTACHMENT and the flow stops. The process is running on a GUEST account for reasons unknown (perhaps because the email sender is an email address that has no account?), even though I have it set for SYSTEM USER. What am I doing wrong?

 

jlaps_0-1750771996553.png

 

jlaps_1-1750772038397.pngjlaps_2-1750772083364.png

 

10 REPLIES 10

jlaps
Kilo Sage

I am somewhat certain the problem is that the incoming email address that has the attachment, does not have a corresponding user account (I don't want to give licenses out willy nilly to non-existent accounts), but I did add that email address to another account to see if it would lock onto that account, and it does.

I do not want this to run as the email.sender.email. I also do not want to provide a license to a bogus account just to process a file.

How do I get this to ACTUALLY use a system user account when it does not even with the RUN AS system user selected?

Voona Rohila
Kilo Patron
Kilo Patron

Hi @jlaps 

Can you deactivate the flow, Update run as value again from the flow properties, Activate the flow and test it?


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Thank you for the suggestion, but the same behavior. Same security warning about the guest account not being able to get at the attachment.

All, I got irritated and added an UPDATE RECORD to the flow to change the email address of the sender to the admin account, and it works. Super lame that is required though! the RUN AS should take care of that.