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 :
Power Platform Community / Forums / Power Apps / Creating a time stamp ...
Power Apps
Answered

Creating a time stamp in a gallery

(0) ShareShare
ReportReport
Posted on by 2

Hi, how would I create a time stamp in an editable table using galleries in Dataverse? I am trying to record when the changes have been made (not using audit logging) in the gallery. I have tried using a Patch Function but am unsure of how exactly to create the formula and where I would put this formula. Thank you

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    Have a hidden timer in your app set to auto start auto restart etc. at 1000 milli, every time ontimerend occurs have it set something like 

    Set(whattimeisitVar,Now())

     then anytime you need a timestamp just reference whattimeisitVar and you have an updated time stamp

  • Verified answer
    v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @ben22 ,

    Since you mentioned you want to create a time stamp when "changes have been made in the gallery", I guess you have a button to save your changes into the Dataverse, like a submit/update button.

    If so, I would suggest you use Patch function in this button to log the timestamp. Before doing this, remember to add a Text/DateAndTime type column to keep the time stamp. The Patch formula should be like this:

    XXX(Other actions here);Patch(DataverseName,ThisItem,{TimeStamp1:Now()})

    See my example:

    valbaimsft_2-1626315668485.png

     

    valbaimsft_3-1626315826975.png

    valbaimsft_4-1626316063752.png

    Best regards,

    Allen

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard