I have been working in a Subscription Management solution and one of the challenges I had to tackle was notifying customers of renewals.
In the app, a Subscription may or may not have Renewal Notices and may have a variable number of notices and different timings for the notices to be sent.
In the Subscritption record, a user can set how many notices (up to 3 by design) should be sent and the timing for each one. With that in place, 1 or more records need to be created in a custom Renewal Notices table. And that’s where Power Automate comes to the rescue.
The first few steps are very straightforward:
The flow is triggered by a new Subscription that has been set up to have notices be sent
We then get the record so we can access all it’s properties
The variable varNoticeDays will store the days to be calculated before the subscription end date
The array variable will be what we will loop through to create notification records
From this point on we need to check if the notices fields contain data and extract the days that were determined
First, we have a condition that will return 1 or 0
If the result is 1, then we extract the number of days (these are choice field like 30 Days)
Finally, we append the result to the array
This is done 3 times
7. Now, we loop through the array and create the records in the table, while doing some manipulation on tha extracted days (convert to negative integer)
The record created contains information about the Account, the Subscription, the Product and the Data it should be sent. With this, we can keep track of all notices and all the information it needs to know. Now, we just have to automate sending the notices 😊