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
Administrator
Administrator

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
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 60 members 3,529 guests
Please welcome our newest community members: