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 :
Microsoft Dynamics CRM (Archived)

Worfklow set date time field to today but time 00:00

(0) ShareShare
ReportReport
Posted on by

Hi,

I have a date time field (not date only) and want to fill in the value with a workflow execution time to today but the time should be 00:00. How can I do this ?
Thanks.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi,

    Dont seem like something that can be done OOB, you have to write a plugin which can update your field with just the current date.

    Else, you can update the field first time it is viewed through the javascript.

    Thanks.

     

  • Community Member Profile Picture
    on at

    Really not possible ??

    Javascript is not an option, since the record wont be opened manually by the user

  • ManirajKV Profile Picture
    1,477 on at

    Hi Donny,

    what kind of workflow it is.. real time / On-demand / custom workflow / Async ?

  • Suggested answer
    Community Member Profile Picture
    on at

    This little workflow assembly is what you are looking for: wfdatetimeutilities.codeplex.com

  • Verified answer
    Community Member Profile Picture
    on at

    You could add a date only field, populate that in your workflow and then take that value and populate your real target field in the next step (not the same step, you need the record to actually get written in between). The intermediate field will kill off the time component.

  • Suggested answer
    ManirajKV Profile Picture
    1,477 on at

    Hi Donny,

    Step 1:

    Register custom workflow which will get the datetime as input and convert into required output format.

    Step 2:

    In your workflow, choose the custom workflow. Pass the execution time as InputParameter to the customWorkflow.

    Step 3:

    use the output parameter value to update the ExecutionTime (target field.)

    here, we don't need to update the record twice and keep hidden field in entity as well.

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!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans