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

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

MattJ
Level: Powered On

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

Community Support Team
Community Support Team

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

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

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!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (3,868)