workflow req.

sns 9,236 Reputation points
2020-08-29T08:58:03.733+00:00

can you please help in designing a logic for the below requirement?

I have attached document of process flow.
can you please help me in getting this done.

Below are the details:

Application Description:

Doctor Booking - Application to reserve a time slot for consulting with visiting physio-therapist. Consulting with a specialist who specializes for these kinds of the musculoskeletal system can prove very beneficial for the pain relief. Now employees can book your consultation online.

Doctor will be visiting every Wednesday from 4:30pm to 6:30pm. This work flow logic should help you to book the consultation with the doctors with the availability.
NOTE : One employee can book only one slot per week . Each slot is allocated for 20 mins only

Classification:

BU : HR

Login Type : Domain/userID

Host : https://xxx.yy.zz.com

URL : https://xxx.yy.zz.com /cgi-bin/facilities/Doctor_Booking/Login.cgi

Process Owner :

Process Flow description:

There are 2 modules in Doctor Booking:

  1. Admin module
  2. Normal user module

User Module:
Only Particular GROUP of IDS can log in to book their appointment with Doctor
Doctor Appointment: Select a date and click on the time slot to book appointment

Admin module:
Admin can generate Doctor appointment report and enable Wellness program registration window

Application Tier : 3

Data classification [CIP]: Non-Confidential

Does application contain Intellectual Property Data? No
Is application Critical to financial reporting? No
Is application Critical to Manufacturing/Shipping? No
Is this application a Security/Authentication/Authorization Service? No
Does application retain Personal Data regarding users? No
Does this application contain Legal Data? No
Does this application service TI customers, suppliers or distributors from the internet? No
Is this application subject to SOX audit reviews? No

Data Fields:

DOCTOR VISIT TIME MASTER WELLNESS PROGRAM USER DETAILS
time id book id
time slot booked by
blocked date
DOCTOR VISIT USERBOOK blocked slot
user book id action
user booked by remarks
user blocked date updated on
booked slot consultation type
action
remarks

I have attached flow diagram. Please help.
21267-flow-doctor.png

Process Flow Diagram:

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,955 questions
0 comments No comments
{count} votes

Accepted answer
  1. MichaelHan-MSFT 18,036 Reputation points
    2020-09-01T09:49:17.957+00:00

    User can add event in the calendat list like this.

    21807-image.png

    In list settings-> validation settings, you could set up the limitation with this formula:

    =AND(WEEKDAY([Start Time])=4,INT(([End Time]-[Start Time])*1440)=20)  
    

    21769-image.png

    You could enable content approve for the calendar list in list settings-> version settings. So admins could reject the submit from users if they book more than once in a week.


4 additional answers

Sort by: Most helpful
  1. MichaelHan-MSFT 18,036 Reputation points
    2020-08-31T06:25:12.41+00:00

    Hi @sns ,

    I don't think workflow would achieve your requirements. Have you thought of the calendar list in SharePoint? It will be a good choice for you.

    Users could add a event in the calendar list to book the appointment. You could use some validations to limit the date can only be selected in Wednesday from 4:30pm to 6:30pm.

    For admins, they could click export to Excel to generate the report.


    If the response is helpful, please click "Accept Answer" and upvote it.


  2. MichaelHan-MSFT 18,036 Reputation points
    2020-09-03T07:13:26.177+00:00

    Don't worry, the approve/reject option would be grey out for end user with contribute access. Only admins can click the approve/reject option. We cannot hide it.

    Give doctor approve permission level will be enough, you don't have to give doctor full control access.

    You could use alert me feature to send email to users. Or you could create a workflow to alert the user.
    22347-image.png

    0 comments No comments

  3. sns 9,236 Reputation points
    2020-09-03T07:29:20.493+00:00

    Hi Michael Han,

    Thank you.

    yes. users are not able to see.
    but with out setting alert are users able to see from event in the calendar it self, whether it is approved or not?

    and can you help on below ticket?
    https://video2.skills-academy.com/en-us/answers/questions/85120/wfissue-on-sp-list.html

    0 comments No comments

  4. MichaelHan-MSFT 18,036 Reputation points
    2020-09-03T07:43:33.63+00:00

    You could click view events, check the approval status column.

    22317-image.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.