Lookup in flow does not work when incident gets updated through external emailaddress

AdamUMC
Tera Guru

Hi there,

I have flow with a lookup. The lookup is being executed as soon there is an incident that meets the following conditions:
1- State changes from "Resolved"

2- State changes to "In Progress"

The lookup is the first action within the incident table and looks for the incident with the SYS_ID from the trigger incident records. This lookup action works very well, but only in the following cases:
1- When the incident reopener is the Caller (who has it's own ServiceNow account)
2- When the incident reoper is a backend incident agent
3- When the incident reopener id someone else with an ServiceNow account sends an mail to the incident

In this cases the lookup does not work and the flow is showing an error:
1- When the incident reopener is someone else, using a general (non-personal e-mailaddress/mailbox), internal mailbox
2- When the incident reopener is someone else, using a general (non-personal e-mailaddress/mailbox), external mailbox
3- When the incident reopener is someone else, using a personal external mailbox

I tried several solutions:
1- Changed the order of the flow actions and the datapills I was using
2- Created a subflow that runs as "System User" (the main flow runs as "User who initiates session") and runs as soon the error occurs in my flow ("Error handler")
3- Changed my lookup action from "Look Up Record" to "Look Up Records" (with plural).

None of these solutions work. The plural action does not show any error, but the problem keeps happening.

Any idea how I can solve this? Thanks!

9 REPLIES 9

@AdamUMC 

there is OOTB query business rule "incident query" on incident table

Can you try to disable that and see if that flow runs without any error?

💡 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

Thanks!

I will discuss whether we can do this.
If the issue lies with this BR query, is there a way to bypass this without having to modify the BR?

@AdamUMC 

that BR already has condition for interactive session check so ideally it should not run for background flow

But still check this in DEV

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

Hi @AdamUMC 

 

Instead of Lookup Record  , Please try with Lookup Records (plural)

 

Refer KB : KB0954943 Flow fails during Lookup Record when no records are found 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Hello @Tanushree Maiti ,

Thank you for your reply. I have already tried this multiple times. If you use the plural option, no error is shown indeed, but the lookup is not executed and therefor the problem is still not solved. 😞

I will look for other solutions if there are any available.

Thanks again!