Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to check availability of unavailability of the users in activity entities in HTML webresource?

Posted on by Microsoft Employee

Hello,

I'm working on Dynamics 365 for Customer Engagement - Sales. I need to manage the conflict management of all the activity entities(Appointment, Task, Fax, Letter, Email). 

i.e. Mike has an appointment on "4/22/2019 8:00 AM" to "4/22/2019 9:00 AM". Now I'm creating an appointment from the HTML web resource At "4/22/2019 8:00 AM" to "4/22/2019 8:30 AM", At this time I want to check whether the User(Mike) is available or not?

Screenshot-_2800_84_2900_.png

Can you guys suggest me?

Thanks in advance!

*This post is locked for comments

  • Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on at
    RE: How to check availability of unavailability of the users in activity entities in HTML webresource?

    Hi Chhaya_Patel,

    This is not straight forward job in MS CRM to handle user availability through coding (C# or JavaScript). You need to use permutation and combination concept here to check user availability.

    I would suggest you to use custom action to handle this scenario. Call action using js function in html web resource.

    Inside custom action try to retrieve all possible already booked appointments using query-expression by passing parameters as Start date time, End date time and user name. You can compare start time and end using less than and greater than operator.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans