# Retrieving Schedule Id for PagerDuty

In Pagerduty, every team has lots of services. Each service has an escalation policy. Each escalation policy has an oncall schedule rotation associated with it.

In Pagerly, the schedule id is the id of this rotation schedule for which you want to manage the oncalls. Pagerly would fetch the current oncall from this schedule so that use mention/tag this current oncall anywhere on Slack

Your schedule Id can be found on the schedule page URL :\[https\://\<company>.pagerduty.com/schedules/#<**scheduleId**>]

\
You can fetch the schedule id as follows

1. Go to your PagerDuty account and go to People tab.\
   Go to On-call schedules\ <br>

   <figure><img src="/files/xHyYAdRktOS7wO4Uyolw" alt=""><figcaption></figcaption></figure>
2. Click on the Schedules Tab and view list of the all schedules
3. Select the schedule you want to configure.
4. Check the URL of the schedule.\
   The last part of the URL would be Schedule Id. Copy that and add in the team configuration as the Schedule Id.

For example, in the account below :point\_down: , the Schedule Id for Payments-Weekly Rotation is PCPOZ7G

\
\
\
Copy that Schedule Id and Paste it into the Schedule Id section of the Add Team Configuration.

<figure><img src="/files/8Xdv3Ray2SetMCiXObeq" alt=""><figcaption></figcaption></figure>

**Click on Create Team and Your Team setup is completed** :checkered\_flag::checkered\_flag:

**We are now ready to test and play with Pagerly for this team**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pagerly.io/how-to-work-with-pagerly/sync-team-schedule-from-tools-pagerduty-opsgenie-etc/retrieving-schedule-id-for-pagerduty.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
