Hi,
The SharePoint Create file action expects File Content in binary format.
The `@{...}` syntax performs string interpolation, so its result is always a string. For raw Base64 content, enter the following as a standalone expression in the expression editor:
```
base64ToBinary(items('Loop_Attachments')?['contentBytes'])
```
Do not add `@{...}` or quotation marks manually. The underlying workflow definition may correctly store it as:
```
@base64ToBinary(items('Loop_Attachments')?['contentBytes'])
```
If the source starts with a Data URI prefix, such as `data:application/pdf;base64,`, use:
```
dataUriToBinary(items('Loop_Attachments')?['contentBytes'])
```
If the preceding action already returns binary file content, pass that output directly without converting it again.
References:
https://learn.microsoft.com/en-us/connectors/sharepointonline/#create-file
https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language#expressions
https://learn.microsoft.com/en-us/azure/logic-apps/expression-functions-reference#base64tobinary
https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-content-type