cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
almendoza26
Level: Powered On

Held Needed with Flow

I have basic knowledge in creating flow. But some functions were unfamiliar to me.

 

I have a SharePoint list where, when an Item is created on the list. I want Flow to have a reference number which gonna use the "Created" and "ID" fields in the list. However, I only wanted to get the "year-mm" in the created field, so I try to use indexOf function. I try first indexOf(outputs('Compose'),'T') to test if I could remove the time in the field. But the result of the flow is way different from the desired output. 

 

Heres the screenshot of the Flow I created and the result of the flow:

 

Flow created.pngFlow I createdFlow.pngResult of the flow

 

Hope that someone can help me with this.

 

Regards,

1 ACCEPTED SOLUTION

Accepted Solutions
dvdalen
Level: Powered On

Re: Held Needed with Flow

If the date field always returns in YYYY-MM-DD then you can use an expression like this:

 

int(concat(substring(outputs('Compose'),0,4),substring(outputs('Compose'),5,2)))

I tested it:

 

2019-04-17 11_26_59-Edit your flow _ Microsoft Flow.png

 

and this was the result:

 

2019-04-17 11_26_24-Run History _ Microsoft Flow.png

2 REPLIES 2
dvdalen
Level: Powered On

Re: Held Needed with Flow

If the date field always returns in YYYY-MM-DD then you can use an expression like this:

 

int(concat(substring(outputs('Compose'),0,4),substring(outputs('Compose'),5,2)))

I tested it:

 

2019-04-17 11_26_59-Edit your flow _ Microsoft Flow.png

 

and this was the result:

 

2019-04-17 11_26_24-Run History _ Microsoft Flow.png

Highlighted
almendoza26
Level: Powered On

Re: Held Needed with Flow

Thanks it works!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 209 members 3,062 guests
Please welcome our newest community members: