Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

ACL Issue in Flow When the Flow is triggered by the System

Rohit_Singh_19
Tera Contributor

Hi All/ @Ankur Bawiskar 

 

I have a flow which is triggered at 4:00 AM GMT. Now in that flow I am using look-up record for the table X and then sending an email using Send Email Action. In Send E-mail body I am using Table X record attributes using data pili picker. When I am testing the Flow using Test UI Action in flow I am not facing any issue. My Flow Properties is set as Run As - User Who initiates the session.

 

However, when the flow is getting triggered by the system at 4:00 AM GMT. I am getting an error while sending email. 

I tried to change the Flow property to Run As - System User. Now when I am testing it manually through UI Action I am getting the same ACL error.

 

My understanding is when the flow is initiated by the system then the all the ACL's are evaluated to true. 

 

Error: Email validation failed: ACL restricts retrieval of the record: Table Name of X Sys_ID of the table record

 

Note: The Flow and Table X both are in same application. 

10 REPLIES 10

Ankur Bawiskar
Tera Patron

@Rohit_Singh_19 

is that a scheduled flow?

share some flow config screenshots.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar , Yes, it's a scheduled flow. 

 

Error: Email validation failed: ACL restricts retrieval of the record: (Table Name of X) (Sys_ID)

 

Flow Execution.jpg

 
 

@Rohit_Singh_19 

Since it's a scheduled flow why not set it with System User

Why to keep user initiating the session?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar , So I did tried to change the flow property to System User. Then when I am trying to test the Flow manually through Test UI Action. I am still getting the error. 

 

Also I have waited for the flow to execute as per the schedule with System User Property setting and but still getting the same error.

@Rohit_Singh_19 

the table being looked upon in Step 1 has what ACL?

did you check that?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader