Posts

Step-by-Step Guide to Retrieve Data from SharePoint List with Over 5000 Items

Image
Managing large datasets in SharePoint lists can sometimes be a daunting task, especially when the list contains more than 5000 items. SharePoint imposes a limit on the number of items retrieved in a single request In this article, we will walk you through a step-by-step approach to retrieve data from a SharePoint list containing more than 5000 items. Understanding the Concept: 1.  Sending HTTP Request to SharePoint REST API:  To retrieve data from a SharePoint list, we’ll be utilizing the SharePoint REST API. 2.  Managing Data Exceeding 5000 Items:  SharePoint imposes a limit of 5000 items per request when querying a list. However, when the list contains more items, the HTTP response includes a property called  __next . This property is a URL that points to the next batch of records, enabling us to fetch data beyond the initial 5000 items. Steps: 1. Create a Power Automate Instant Flow 2. Initialize a boolean variable named ‘ varNextPageExists ’ with the value...

Handling Property Existence in SharePoint JSON Responses using Power Automate

Image
In scenarios where SharePoint Lists contain more than 5000 items, handling paginated data becomes crucial. When making HTTP calls to retrieve data, the response often includes a   __next   property. This property serves as a marker for paginated data, and its absence indicates the end of the dataset. Safeguarding your process against potential errors involves checking the existence of a property before attempting to access it. To assess the existence of the property, you can use the following formul a: contains ( json ( variables (‘varSampleJson’)), ‘next’) Here’s how you can handle property existence in JSON responses using Power Automate: The formula within the compose action returns a ‘true’ based on the provided JSON sample value. Conclusion : By incorporating this property existence check, you prevent potential errors that may arise from attempting to access a non-existent property.

App Permissions in SharePoint

Setting app permissions in SharePoint is a critical aspect of developing custom applications and add-ins. By using the   AppPermissionRequests   element, developers can define the necessary access levels required for their apps to function optimally without compromising security. Understanding AppPermissionRequests AppPermissionRequests is an XML element used in SharePoint to define the permissions required by an app to function correctly within the SharePoint environment. The syntax of the AppPermissionRequests element consists of one or more AppPermissionRequest elements. Each AppPermissionRequest element defines a specific scope and the corresponding rights that the app should have within that scope. < AppPermissionRequests AllowAppOnlyPolicy = "true" > < AppPermissionRequest Scope = "http://sharepoint/content/sitecollection" Right = "FullControl" /> < AppPermissionRequest Scope = "http://sharepoint/content/sitecollectio...

Power Automate to send reminders for tasks

Image
In this blog post, we will explore how to use Power Automate to send reminders for tasks 7 days before the due date, on the due date, and every 7 days after until the task status is marked as completed. Prerequisites: Create SharePoint List and name it as ‘TaskList’ Add columns as below Step-by-Step procedure to create a flow: Step 1: Set Up Recurrence The first step is to configure a recurring trigger in Power Automate. This trigger will run the flow every day, serving as the foundation for sending timely reminders for tasks. Log into Power Automate Portal > Create > Scheduled Cloud flow Give Flow Name > Set Repeat Every Field with ‘1’ and ‘Day’ Step 2: Fetch In-Progress Tasks Next, use the “Get items” action to retrieve tasks from your SharePoint task list. Apply a filter to include only tasks with the status “In Progress” and with a due date that is within the next 7 days. This filtering ensures that reminders are sent for tasks that are currently being worked on and due so...