Treat a file as an item

I need to set permissions for a file after sharepoint trigger “On file created”. There are 2 examples on this site regarding such case. Both are setting permissions on an item, but in this example
a file is treated as an item BUT with “For a selected item” trigger. But I need the same but with File Created trigger.

Hello @Zhukov23, thank you for your message.

If you want to change file's permissions your flow might look like this: