Hey folks,
I'm very new to power automate and I use it in my company to accomplish two things:
- Transfer Salesforce reports that are mail attachments to a sharepoint site
- Delete reports from the sharepoint site that are older than 7 days
First task works like a charm but deleting the older files throws an error.
I did hack together this flow using tutorials online, so there is a very high chance that I copy/pasted something wrong.
I can interpret what the expressions mean that I pasted, I'm just not practised enough to write them.


Fehler beim Ausführen der Vorlagenaktion "Auf_alle_anwenden". Das Ergebnis der Auswertung des foreach-Ausdrucks "@items('Auf_alle_anwenden_2')?['Modified']" weist den Typ "String" auf. Das Ergebnis muss ein gültiges Array sein.
Sorry for the error messages in German.
The expressions that I'm using are
utcNow('yyyyMMdd')
formatDateTime(adddays(item()?['Created'], 7), 'yyyyMMdd')
May someone has an idea.
Thank you!