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 / REPLACE VALUES IN DATE...
Power Automate
Answered

REPLACE VALUES IN DATE FIELD FROM SHAREPOINT LIST

(0) ShareShare
ReportReport
Posted on by 145

Hello everyone,

 

I'm trying to replace the '-' character that comes from sharepoint trigger to set a variable with the following format:

 

Sharepoint comes like: 2022-10-10

 

Variable must be set: 20221010

 

I know i have to use Replace function but can reach the right syntax.

 

Thanks 

Categories:
  • RobElliott Profile Picture
    10,545 Super User 2026 Season 2 on at

    @Davidx23 Replace(outputs('CurrentDate'),'-','')

     

    replace2.png

     

     

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

  • Davidx23 Profile Picture
    145 on at

    Rob,

     

    What if i wanna take it straight from the Sharepoint attributes to make the flow shorter?

  • RobElliott Profile Picture
    10,545 Super User 2026 Season 2 on at

    @Davidx23 so try it. It will only save a fraction of a second but it's always worth trying to make your flows run as efficiently as possible.

     

    Rob
    Los Gallardos

  • Davidx23 Profile Picture
    145 on at

    That's what i'm trying to do, just that i don't know how to make the syntax.

     

    It was something like: replace(body('Get_Item'),TriggerBody('Column_Name'))

     

    did you knwo how to make it?

  • Verified answer
    Davidx23 Profile Picture
    145 on at

    Never mind, i found it. Thanks Rob

    replace(triggerBody()['Fecha'],'-','')

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard