Posts

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...

SharePoint file creation with properties/metadata in a single version using power automate

Image
In this blog post, we will explore how to create files and assign properties in a single version using the powerful automation tool, Power Automate. To achieve file creation with properties in a single version, follow these steps in Document Library: Step 1: Enable the option “Require documents to be checked out before they can be edited.” Step 2: In Power Automate, utilize the “Create file” action, followed by updating the properties and checking in the file. Please refer to the screenshots below for a visual representation of the process. In this blog post, we’ve learnt how to create files and assign properties in a single version using the power automate