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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Formatting date column...
Power Automate
Unanswered

Formatting date column in sharepoint list

(0) ShareShare
ReportReport
Posted on by 86

Hello 

 

I built a flow where i extracted datas from pdf with AI Builder model and fill a sharepooint list. I'm getting since the begining with date extracted from pdf or email body. Error message (The 'inputs.parameters' of workflow operation 'Create_item_in_the_minute' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/field_3' is required to be of type 'String/date'. The runtime value '"31/01/2023"' to be converted doesn't have the expected format 'String/date'.) below in the sharepoint list.

Any help to solve this?

 

Lagloire_0-1674058944415.png

Lagloire_1-1674059041484.png

 

 

 

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at

    Hey @Lagloire 

     

    Whats the data type of this field in your sharepoint list?

    String or Date?

  • Lagloire Profile Picture
    86 on at

    extrated date from pdf or email body is written like 01/01/2023 (french format)

  • Lagloire Profile Picture
    86 on at

    it is as you can see on below image:

     

    Lagloire_0-1674070665611.png

     

  • Sundeep_Malik Profile Picture
    6,484 on at

    @Lagloire 

    Is there a possibility you can change the data type of this SP column to string/text instead of date and time???

    Probably this issue comes while getting data from AI Builder.

  • Lagloire Profile Picture
    86 on at

    Do you mean to change the type of information in this column from "Date and Time" to "Single or Multiple lines of text"?

    O can you tell me how to make this change? 

  • Sundeep_Malik Profile Picture
    6,484 on at

    @Lagloire 

    Yup I mean that only, change it to single line of text. [Not working with SharePoint these days so forgot the exact term]

  • Chriddle Profile Picture
    8,436 Super User 2025 Season 2 on at

    Maybe it's better to keep the list column type (e.g. for sorting).

    If so, convert your date string ('31/03/2023') to an ISO formatted date string (e.g. '2023-01-31').

    This is accepted as a sharepoint date value.

     

    Assuming that outputs('Compose') is your date string:

    concat(outputs('Compose')
    	split(outputs('Compose'), '/')[2],
    	'-',
    	split(outputs('Compose'), '/')[1],
    	'-',
    	split(outputs('Compose'), '/')[0]
    )

     

  • Lagloire Profile Picture
    86 on at

    Hi 

    Exact, in the compose action, i'm concatenating the date as you said and in SP date column formating it like :

    formatDateTime(parseDateTime(outputs('Answer_date')), 'dd/MM/yyyy''en-GB').
     
    You suggested to convert date string ('31/03/2023') to an ISO formatted date string (e.g. '2023-01-31').
    I want to have the date in this format '31/03/2023', so do you think like i may be possible to have it in the format as i want?
    Regards
  • Chriddle Profile Picture
    8,436 Super User 2025 Season 2 on at

    If you follow my suggestion and keep "Date" as your list column type, your Sharepoint list has date values.

    How these values are displayed is handled by the Sharepoint configuration in the site settings.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard