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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Insert a datetime field with Power automate

(0) ShareShare
ReportReport
Posted on by 10

Hi everyone, 

I want to insert value with Power automate from Excel file, but when I have a field with dateTime Type, It will be insert with MM/DD/YYYY

I used the formatdate expression but it doesn't give me the best answer. 

Have you any suggestion please ?

Best regards, 

Julien, 

I have the same question (0)
  • Verified answer
    Mohamed GRAIB Profile Picture
    2,504 Moderator on at

    Hi Julien,

    Have you the action List rows present in table ? If yes, you must configure this action before the utilization of formatdate expression.

    Please mark the answer as verified if that's resolve your problem

  • Verified answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi Julien_Admin,

    Use the Date time format while striving records from excel, It will give your desired results.

    pastedimage1672494101449v3.png

  • Julien_Admin Profile Picture
    10 on at

    Thank you Abdul Wahab and Mohamed GRAIB

    I have another issue how to mapp the lookup field with the Excel rows.

    Have you any suggestion please ?

  • Verified answer
    Mohamed GRAIB Profile Picture
    2,504 Moderator on at

    You must add an action

    List rows as shown in the figure below : 

    pastedimage1672499023811v1.png

    You must choose the table name of your lookup. 

    Then when you mapp, you must add the plural name of your table (your column) 

    You can also initialize a variable and utilize it in your action. 

    You can follow this link 

    https://powerusers.microsoft.com/t5/Building-Flows/How-to-map-lookup-field-in-update-record-action-in-flows/td-p/312182

    Please mark the answer as verified if that's helpful for you. 

  • Julien_Admin Profile Picture
    10 on at

    Thank you Mohamed

    I have implemented this solution, but, I had an error when the row in my Excel table does not contain data.

    I must implment another solution or use an expression.

  • Verified answer
    Mohamed GRAIB Profile Picture
    2,504 Moderator on at

    In this case,

    I suggest this solution,

    You must initialise a variable for your lookup Field and define your variable. 

    After that, try to use this expression in your lookup field 

    if(empty(your variable),null,concat('/plural table name(',your variable))'))

    Just when you add your variable add it dynamically, there many '' that will be added here. 

    Please mark the answer as verified if that's resolve your problem. 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 61 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 52 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 31 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans