Skip to main content

Notifications

Announcements

No record found.

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, 

  • Verified answer
    Mohamed GRAIB Profile Picture
    Mohamed GRAIB 2,498 Super User 2024 Season 2 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
    Julien_Admin 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
    Mohamed GRAIB 2,498 Super User 2024 Season 2 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
    Julien_Admin 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
    Abdul Wahab 12,070 Super User 2024 Season 1 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
    Mohamed GRAIB 2,498 Super User 2024 Season 2 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans