cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ZARE
Level: Powered On

Update D365 DateTime field with Patch and Now

Hi, I am trying to update a datetime field from D365 using the Patch function. I try the following: Patch(Opportunities, LookUp(Opportunities, Opportunity=GUID(Param("OpportunityId"))), {'Last contact':Now()})

 

but the time is always 00:00:00. Field in D365 is set to 'User local' type so it should be able to set the time.

 

Thanks in advance

1 REPLY 1
TopShelf-MSFT
Level 10

Re: Update D365 DateTime field with Patch and Now

Hi @ZARE  thanks for posting in the community. In reviewing your situation, I found the following documentation which states the following formula will display the current date and time: Text( Now(), "mm/dd/yyyy hh:mm:ss" )

 

@TopShelf-MSFT 

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,094)