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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How to display a record between different time durations during the day?

(0) ShareShare
ReportReport
Posted on by 903

Hello,

I have multiple checklists that should be filled by the employee's between different time duration and twice a day.

  • Example: Checklist A  should be filled between 6AM - 11AM and 2PM - 6PM
  • Checklist B should be filled between 3PM-4PM and 5PM - 6PM

The main purpose is that when the employee open's the form where he wants to select the checklist, the one that will be displayed in the LookUp view is the one that falls under the same duration of the employee timeZone.

  • Example:If the employee's current time is 6:21 AM Checklist A will be visible and checklist B should not show in the lookup view.

What do you suggest as a solution to implement the above requirements in an effective way?

I thought about two different options but I am still confused about which one I shall proceed with:

  1. Having a scheduled workflow on Power Automate that triggers every 1 hour -> compare current time vs checklist setup -> If it meets the criteria I can set a toggle that indicates if it should be visible Yes/No -> OnLoad of the form where the employee will fill out the checklist the only records that will be showing are the ones visible = true.
    OR
  2. Having a JS onLoad of the form which grabs the current user timeZone -> checks the setup vs current time-> filters the lookupView according to the needed criteria.

Any help is greatly appreciated.

Thank you!

I have the same question (0)
  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at
    RE: How to display a record between different time durations during the day?

    Hi EBMRay,

    A great solution is to obtain the users local time with on load JavaScript, then show and hide fields representing checklist A and checklist B based on the current time.

  • EBMRay Profile Picture
    903 on at
    RE: How to display a record between different time durations during the day?

    Hi Adrian Begovich

    I appreciate you providing the documentation below.

    Regarding the show/hide it is not related to a field it is related to a "Record" meaning some FetchXML filters should be applied based on the current timeZone of the user.

    Let me give it a try and get back to you if I get stuck.

    Best regards,

    EBMRay

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 231

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 83 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 68 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans