web
You’re offline. This is a read only version of the page.
close
Skip to main content
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,500 Moderator on at
    RE: Insert a datetime field with Power automate

    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. 

  • Julien_Admin Profile Picture
    10 on at
    RE: Insert a datetime field with Power automate

    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,500 Moderator on at
    RE: Insert a datetime field with Power automate

    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
    RE: Insert a datetime field with Power automate

    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
    Abdul Wahab Profile Picture
    12,119 Moderator on at
    RE: Insert a datetime field with Power automate

    Hi Julien_Admin,

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

    pastedimage1672494101449v3.png

  • Verified answer
    Mohamed GRAIB Profile Picture
    2,500 Moderator on at
    RE: Insert a datetime field with Power automate

    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

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 100 Super User 2025 Season 2

#2
Suresh Kulla Profile Picture

Suresh Kulla 72 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 55

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans