Badal Khojare
Mega Sage

While submitting a request for catalog item that runs on a  Flow have you encountered discrepancy while running it and then Testing it. Like when you submit a request the intended flow does not run as expected but when you Test it from Flow Designer Test functionality it runs as expected. 

 

This is because when you run a flow from the Test Ui action in Flow Designer, it runs as 'System'. When it runs from a submitted catalog item, it likely runs as the user who submitted it, unless the flow properties are configured differently. It's possible that the user who submits the flow doesn't have the roles / ACL permissions to perform some of the actions. You can remediate this by adding a role to apply at runtime.

 

This can be done by going to Properties > Run As.  

BadalKhojare_3-1699874474737.png

 

BadalKhojare_4-1699874695120.png

 

 

 

More about it : Create a flow with roles

 

Comments
CezaryBasta
Tera Guru

Advising to run flows as system user is not really the best solution. There are learning resources with better explanation of this topic, including the Run with roles approach, which is a much better alternative than using the System user.

Luxo Nadappan
Tera Guru

Hi ,

 

I had this experience and issue was fixed by updating the "latest" published flow version against "catalogue item"(As  i have noticed  people used to create different versions to save the previous version).

 

Regards,

Luxo 

Badal Khojare
Mega Sage

Hi @CezaryBasta , 

Yes definitely User with roles is the approach to go for if not user who initiated the session. Thanks for the information!

Badal Khojare
Mega Sage

Hi @Luxo Nadappan , 

Thanks for sharing your valuable inputs. I will surely check this if encounter similar issue in future.

Version history
Last update:
‎11-13-2023 03:30 AM
Updated by:
Contributors