web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Dynamic scheduling to generate records based on different duration units

(0) ShareShare
ReportReport
Posted on by 903

Hello,

I would like to build a recurrence functionality that is very similar to the Agreement Booking Setup in the field service module, which is the following:

pastedimage1666209528603v1.png

The purpose of this feature is to avoid manual intervention if I have a task that repeats frequently. Here are some scenarios

 

  1. Example: I want to add 3000$ bonus for 10 employees for 3 months which means each month an employee will earn 1000$.
    Instead of going for each employee and adding 3x records per employee manually, the manager can select the employees and schedule the Bonus installment for each individual.

The recurrence will not just be monthly as we need to have the Weekly,Quarterly, Annually units.

 Other examples:

  1. If I want to give a Bonus to an employee every Sunday and Tuesday with no end date, how would we handle it?
    As far as I know, in the flow we can check the dayofweek, etc., but what about records without an end date?

  2. Another one is the End date behavior can also be set after a certain number of occurrences.
    The same as the above example but for X number of occurrences only. (It might be 4,3 or whatever..)

  3. Also, it can repeat every X days and the end date of occurrence by end X month.

What do you suggest as a solution to achieve the above requirements and could you please clarify how the records will be processed? Can you suggest how we may structure it in a more effective way and what are the setup tables required? Example: Table for the occurrence, another one to put the records in queue, third one is target table where the records will be generated..

Kindly note that the recurrence option of Power Automate will not work because the parameters are dynamic and the interface anyway is in model-driven and should be configured by a user. However, we can build a workflow that runs daily and check the records that should be processed.

pastedimage1666209795400v2.png

Any help is greatly appreciated.

Best regards,
EBMRay

I have the same question (0)
  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at
    RE: Dynamic scheduling to generate records based on different duration units

    Hi EBMRay,

    Here ar the details for he delay in Power Automate:

    1. Use wait conditions to delay flows - Power Automate | Microsoft Learn
    2. Solved: Delay until limit and interim change - Power Platform Community (microsoft.com)
    3. Solved: Power Automate Daily Limits - Power Platform Community (microsoft.com)

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at
    RE: Dynamic scheduling to generate records based on different duration units

    Hi EBMRay

    Your approach is looking perfect.

    There may be multiple ways to write child flows but I know only two:

    1. Power Automate: When an HTTP request is received Trigger - Manuel T. Gomes (manueltgomes.com)
    2. Call Child Flows - Power Automate | Microsoft Learn

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

  • MikeC282 Profile Picture
    2,165 on at
    RE: Dynamic scheduling to generate records based on different duration units
    [quote user="EBMRay"]

    Hey MikeC282 ,

    Thank you for your reply.

    The limitation in the flow is that you cannot exceed 30 Days so for example if you have a record that repeats every 3 months you will not be able to delay it for this period. As an alternative, I would always need to restart the same process.

    Terminating the flow is straightforward.

    Best regards,

    EBMRay

    [/quote]

    Oh really?

    Whilst I never used the Delay step to wait for months on end it does have months as a option... One would assume if the option is available then it should work. Do you have any documentation outlining said limitation of 30 days???

    pastedimage1666305547354v1.png

  • EBMRay Profile Picture
    903 on at
    RE: Dynamic scheduling to generate records based on different duration units

    Hello Abdul Wahab ,

    Thank you for your suggestion.

    I think I need 2 different tables one will be for "Reoccurrence setup" as below:

    Julien2_5F00_0_2D00_1666277447846.png

    The other table is to define the list of the elements that I want to include in the recurrence (Bonus, Deductions, etc..)

    As for the first table, I think we should have a "Next refresh Date" (highlighted in bold in the above screenshot) on the record creation where on daily basis at 6:00 AM the flow is checking if there is/are record(s) should be generated and comparing it to today's date.

    If they are equal -> generate the record -> update the next refresh date based on the number of days specified in the original setup (in the above example it is repeating every 3 days).

    I believe the next refresh date for any unit will achieve the requirement.

    Another complex example is an occurrence that occurs on certain days and repeats every Monday and Friday so on Monday if the record was generated it will add to today's date 4 days (Monday until Friday)  and that will be updated in the "Next refresh date" column and then when it reaches "Friday" it will add 3 days for the "Next refresh date". (Friday until Monday)

    The challenge is how are we going to split it into child flows in a logical sense as one flow will be very large to check for all units.

    Do you agree with the above approach? I'm doing some brainstorming before I start the real testing.

    I would highly appreciate your input.

    Best regards,

    EBMRay

  • EBMRay Profile Picture
    903 on at
    RE: Dynamic scheduling to generate records based on different duration units

    Hey MikeC282 ,

    Thank you for your reply.

    The limitation in the flow is that you cannot exceed 30 Days so for example if you have a record that repeats every 3 months you will not be able to delay it for this period. As an alternative, I would always need to restart the same process.

    Terminating the flow is straightforward.

    Best regards,

    EBMRay

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at
    RE: Dynamic scheduling to generate records based on different duration units

    Hi EBMRay.

    If you still need the same functionality then you should need to adopt the same components. To generate work orders Microsoft is using workflow, not the 'Power Autome'. For further details analyse: Field Service - Generate Work Order for Agreement Booking Date

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at
    RE: Dynamic scheduling to generate records based on different duration units

    Hi EBMRay,

    Basically, you need a few similar architectures on your table(s)

    1. Frequency
    2. Bonus
    3. Date of Disbursemenor Disbursement Date

    Run your flow at your desired frequency, even if you can run it daily. I think it is better to think about the structure instead.

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

  • Suggested answer
    MikeC282 Profile Picture
    2,165 on at
    RE: Dynamic scheduling to generate records based on different duration units

    Hey bud,

    Rather than using recurrence I would use the delay option in Flow. So the trigger step in Flow I'd use when a HTTP request is received. So have the created table in Dynamics do an initial trigger for your recurrence to the flow and dynamically pass how long to delay before performing the action. After the delay finishes and the action is completed you would then add another step to the flow to check that recurrence record in Dynamics again if current date equals end date then terminate the flow but if it still hasn't hit the end date then trigger the flow again with another delay.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
DAnny3211 Profile Picture

DAnny3211 134

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 132

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans