web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Special characters or ...
Power Automate
Unanswered

Special characters or inline functions

(0) ShareShare
ReportReport
Posted on by 14

Hello,

  I am trying to do a simple flow to take email attachments and create them in a sharpoint file directory.  I need to use the email subject as the file name but they contain a colon which is an invalid character.  Is there any way to search and replace when creating the file name in the flow?

 


Thanks

Andrew

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @andrewr,

     

    This is what you want.

     

    My Flow configuration:

     

     

  • andrewr Profile Picture
    14 on at

    Looks like the end of your message didn't come through 😕

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @andrewr,

     

    You need to use Compose and utilise the workflow definition language function called replace.This is what you want.

     

    https://docs.microsoft.com/en-us/rest/api/logic/definition-language

     

    My Flow configuration:

     

    s1.png

     

     

    s2.png

     

    My Flow Test Result:

     

    s3.png

     

    Email Send with Attachmen and Subject as 'TestDoc:Aj'

     

    s4.png

     

    SharePoint File uploaded without colons.

     

     

     

     

     

    If you need any more help please let me know.

     

    Thanks

     

     

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @andrewr,

     

    You need to use Compose and utilise the workflow definition language function called replace.This is what you want.

     

    https://docs.microsoft.com/en-us/rest/api/logic/definition-language

     

    My Flow configuration:

     

    s1.png

     

     

    s2.png

     

    My Flow Test Result:

     

    s3.png

     

    Email Send with Attachmen and Subject as 'TestDoc:Aj'

     

    s4.png

     

    SharePoint File uploaded without colons.

    s5.png

     

     

     

     

     

     

     

    If you need any more help please let me know.

     

    Thanks

     

     

  • andrewr Profile Picture
    14 on at

    Thanks, this is really helpful.

     

    I'm just wondering if there is more than one attachment will it fail?

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @andrewr,

     

    I haven't tested with multiple. It should work if you using the actual filename. As you can see the flow SP template (See above) is in a loop.

     

    Thanks

  • andrewr Profile Picture
    14 on at

    I need the file name to be the subject of the email, but I wonder if I can concatenate the original file name too.  Any thoughts?

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @andrewr,

     

    You need to do the following:

     

    1. Add another compose and map the input parameter as Attachment Name.

    2. Use the concat function to get together this output & subject.

     

    Thanks

  • andrewr Profile Picture
    14 on at

    Are there details of the concat fucntion?  I haven't been able to find it via a search

     

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @andrewr,

     

    This is documentation you need https://docs.microsoft.com/en-us/rest/api/logic/definition-language

     

    Please follow the below flow for your requirement.

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard