Notifications
Announcements
No record found.
Dear Support,
While creating task under PSA module, project manager provide start/end date for the task. But while entering time entry for the specific data is like free form. It is allowing to pick back date or future date.
Solution : When start date and end date set for specific task then in Time entry after selecting that task it should only show option to pick from the start date / end date. Restrict selecting any other date.
Please help us. Thanks !
Regards / Faisal
Hi Faisal,
I found that you have added Project Task entity as a lookup field in your Quick Create form.
So you could try to run custom javascript at Date field onChange event:
when date value is changed, retrieve Start Date and End Date fields of selected project task record by Xrm.WebApi.retrieveRecord,
if the date value is not within that two date range, reset Date field to Start Date value of selected project task record, and show an alert dialog to user.
Regards,
Clofly
you request seems for me to be very customer dependent. I for example have several customer with different requirements for Time Entry date. An easy way without coding will be to create a sync workflow (yes the old one :) )Wich verify the entered data after clicking on the save button. With sync workflows you can then easily show Error Messages is the entered data is not valid.
Hope this helps,
Manuel
Thank you all for the answers.
Could you pl help us with JavaScript to call the method.
OR
Way to create WF process with condition
sure. I'm using sync. WFs in such scenarios. The one you've asked for could be similar to that:
For that example I have used the field "Actual Start" on Project (can be any other Date-Field as well). The result is as follows:
If I enter a time which does not fit into the condition (Date on Time Entry is after the Date in Acutal Start on Project Entity):
An error is shown to the user:
And the value/time entry is not being saved:
Hope this helps.
Kr
Dear Manuel,
Thanks and appreciated for sharing the step, i followed same but no luck for me.
WF is not restricting or any error throw when back date select.
PFA screenshot.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 456 Super User 2025 Season 2
Martin Dráb 429 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional