When you upload a file to a folder in SharePoint, the system will check whether the file name is unique in that folder. If not, the system will present you the option to replace or keep both. In the latter case the file name will get an index number, like shown in the following image.

Now I want to have the same “experience” when automating the upload of e-mail attachments to a…
Continue Reading StefanS365’s Article on their blog
https://2die4it.com/2021/11/03/determine-unique-name-for-file-to-save-to-sharepoint-folder-with-just-3-flow-actions/
Blog Syndicated with StefanS365’s Permission
More About This Author
Array
Dyn365CE2022.02.03Add folder ID to file properties with 2 Select actions in Power Automate flow
Dyn365CE2021.12.30Add Dataverse Team members to SharePoint Person column with Power Automate flow
Dyn365CE2021.12.29Determine unique name for file to save to SharePoint folder with just 2 flow actions
Dyn365CE2021.11.03Determine unique name for file to save to SharePoint folder with just 3 flow actions