cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Convert "Created" SharePoint list field to a number field with value "yyyymmdd" using When an item is create; updat item

Hi There,

 

Hoping someone can help, i am building a Day Log PowerApp -

-Step 1 - content type

-Step 2 - create list

-Step 3- create PowerApp from list page

-Step 4 - when trying to use date field for filter function on PowerApp the blue line of delegation issue comes up

-Step 5 - do some research, recommendation is to convert the "Create" sharePoint list item field to a number.

-Step 6 - can't get Flow to update the item, as it throws an error stating that "Created" date time format does not match ISO8601 requirements - formula used in update item -        formatDateTime('Created'','yyyymmdd')

-Step 7 - please help me

3 REPLIES 3
Dual Super User
Dual Super User

Re: Convert "Created" SharePoint list field to a number field with value "yyyymmdd" using When an item is create; updat item

Hi @MattJ 

 

you are using created as a string

it needs to be dynamic content value for the created column

 

your expression should look something like

formatDateTime(body('Get_item')?['Created'],'yyyymmdd')
 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Highlighted
Frequent Visitor

Re: Convert "Created" SharePoint list field to a number field with value "yyyymmdd" using When an item is create; updat item

Hi Reza,

 

Really apreciate you getting back to me so quickly.

 

Just a question for clarification:

The formula you have provided

formatDateTime(body('Get_item')?['Created'],'yyyymmdd')

The formula i have inputted is below

formatDateTime(body('Update_item')?['Created'],'yyyymmdd')

returns the followng error

The template validation failed: 'The 'inputs' property of template action 'Update_item' at line '1' and column '1695' is not valid. The action cannot reference itself.'.

 

Do you have any suggestions how i can fix this?

 

thanks

Matt

Highlighted
Community Support
Community Support

Re: Convert "Created" SharePoint list field to a number field with value "yyyymmdd" using When an item is create; updat item

 

Hi @MattJ ,

 

Could you share a screenshot of the Flow configuration?

The Error message mentions that you are referencing the value of the current action itself, so this error occurs.

You need to reference the value of the action output above and use a function to convert it.

Please provide more details so that we can provide the appropriate workaround.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (5,540)