Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Dear Lissa,
Thanks for your updates.
Yes, the file name will be changed when they are added as attachments from Microsoft Forms. The format is upload file name+_your name+extension or upload file name+_your name+number+extension.
If you generally upload the file to a site library by yourself, the name will not be changed.
For the requirement "the flow will be updated by removing the OneDrive for Business (Create file) and adding the SharePoint Create file option.", you actually don't need to create the file in the folders in OneDrive for Business. Just creating the corresponding folders in SharePoint Online and then using the Create file (SharePoint) action is preferred.
Regarding "Please advise where the formula you provided should be added as I don't understand.", substring is used to extract the text in a string from a specific position, indexOf is used to get the text length before a specific keyword, sub is the minus result between two numbers and length is the total length of a string.
For your reference: List of string operations - Power Automate | Microsoft Learn
After you use Parse JSON to extract the file attachment parameters, you can add the Compose action with Apply_to_each to get the trimmed file name of each file like the following.
Welcome to share any updates at your convenience.
Thank you for your effort and time.
Sincerely
Cliff | Microsoft Community Moderator