Synchronize ServiceNow Incidents with Dynamics 365 Cases > Synchronize ServiceNow Incidents with Dynamics 365 Cases recipe contents > Pagination process
  

Pagination process

The Pagination process retrieves the incidents in ServiceNow, validates them, and calls a subprocess to synchronize the data in Dynamics 365.
The Pagination process is used as a subprocess in the ServiceNow to Dynamics365 (Incident to Case) process.
The following image shows the steps that the Pagination process contains:
The image shows the steps that the Pagination process contains.
The following table lists the steps that the Pagination process contains:
Step Name
Description
Start
The process searches for the date you want to retrieve the data and the email address to which the process execution result needs to be sent.
Get Access Token
Get an access token to authorize all the connection requests. After you generate the access token the first time, you can use it for multiple requests for the duration specified in the client credentials.
Get Last Created Incidents
Gets all the incidents that were created or updated from the previous day. You can also modify the date from when you want to synchronize the data.
Set Total Count of Incidents
Gets the total count of the incidents.
Prepare Incident PO
Parses the incidents and assigns values.
Pagination
The process iterates the response results for all incidents. The process contains a pagination of search results for incidents with a limit of 100 results per page. If the number of records is greater than the temporary count value, that is, 100 records per page, the process links the results to the next page.
If the number of records does not cross the temporary count value, the process starts validating the incidents. The process performs the steps configured in the Create Case process and increases the count of successful and failed synchronizations based on the synchronization results. Otherwise, the process increases the count of failed synchronizations. If the case doesn't have a caller, the number of failed records increases.
Prepare Email with Result
Collects the result that contains the number of successful and failed synchronization incidents in the email.
End
Ends the process.