web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

[Service Calendar] Schedule resources so there aren't multiple bookings per resource

(0) ShareShare
ReportReport
Posted on by 510

Hi all, 

I am currently working with the service calendar. I have created a custom Service Activity form which serves as a very simple booking form. The out-of-the-box 'Schedule' form lets you "check available times" before making a booking - but due to our requirements we needed to implement this custom form which doesn't let the user "check available times" before adding the booking to the calendar. After a doubled-up booking is saved, a banner appears at the top of the page which says "[resource] is unavailable for booking at this time", however it does not actually stop the user from creating the booking. I have looked into capacity scheduling with the hopes that specifying the capacity of the resource to 1 would not allow more than one booking at a time for a resource, however it doesn't seem to affect the ability to create multiple bookings per resource. At this point, I am wondering if there is a way that I could cancel the booking if multiple bookings on one resource are detected, using Javascript. If any enlightened minds out there have knowledge regarding this aspect of resource booking I would love to hear.

Cheers,

Ruairi

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Magor Kovacs Profile Picture
    1,835 on at

    Hello swannylfc,

    In this situation you might want to look into Business Rules before resorting to scripting. Depending on your business logic, you might hide the relevant fields with a Business Rule in order to prevent further bookings.

  • swannylfc Profile Picture
    510 on at

    Hi Magor,

    Thanks for the suggestion, however I am currently using CRM 2011 which I don't believe has Business Rules as a feature? We are planning to upgrade to 2013 or 2015 in the next 6 months but I will try to implement a solution before then.

  • Suggested answer
    Magor Kovacs Profile Picture
    1,835 on at

    Ah ok, I was under the impression that we are dealing with 2013. For 2011, your option is indeed scripting as Business Rules are present only in CRM 2013 (and 2015 once out).

  • swannylfc Profile Picture
    510 on at

    Hi Magor,

    When you say the option is scripting, do you mean Javascript? I am having trouble getting the resource availability based on what is currently booked on the service calender. It looks like it can be queried through the IOrganizationService.Execute method (referring to this article: msdn.microsoft.com/.../gg334234.aspx) but I don't see any possible ways to do this using Javascript. Thanks for your help so far.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans