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

Announcements

News and Announcements icon
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,508 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,508 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,508 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
KristineRisberg Profile Picture

KristineRisberg 33

#2
11manish Profile Picture

11manish 31

#3
Manoj - ManoVerse Profile Picture

Manoj - ManoVerse 21 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans