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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Workflow Automation fo...
Power Apps
Suggested Answer

Workflow Automation for Model-Driven App

(0) ShareShare
ReportReport
Posted on by 19
I am working on developing a model-driven app that will manage a large portfolio of projects that role up to different programmatic umbrellas. We will be tracking financial forecasts/actuals for each of projects MoM. To minimize administrative burden and input errors I would like to create an automation that will create a forecast record for all months in a calendar year when an initiative record is created.
 
I have already created 2 custom tables: Project and Financial with a 1:M relationship. My question is how to best create a batch of records in the financial table with Project Name and financial month prepopulated.
 
Categories:
I have the same question (0)
  • Suggested answer
    CU25060357-0 Profile Picture
    37 on at

    Great question! You can definitely automate this using Power Automate, and the setup depends a bit on how your data model is structured:

    If your Initiative is the Project record:

    You can trigger a flow when a new Project is created. The flow would loop through all 12 months of the year and create a Financial record for each one, automatically linking them to the Project and setting the appropriate month.

    If Initiative and Project are separate tables:

    In this case, trigger the flow when a new Initiative is created. Then, pull in all related Projects tied to that Initiative and, for each one, loop through the 12 months to create the Financial records.

    To loop, you would:

    1. Initialize variables (Define a loop counter and set the starting month/year)
    2. Apply to Each (1–12):
      • Calculate each month (e.g., using an expression with addMonths()).
      • Use the Dataverse "Add a new row" action to create a Financial record for each month with the Project and Financial Month fields.

     

    I hope this helps!

  • JHat1121 Profile Picture
    19 on at
     
    I have created an automation based on your response that has the following flow (see IMG 1).
    When a Row is added to the Initiative
    Initialize StartDate
                    Type: String
                    Value: 2025-01-01T08:00:01
    Apply to Each
                    Output: addmonths(variables('StartDate'),1)
                    Add a new Forecast Record
    I have placed the a new record action record within the loop. When I try to save the flow I receive the error message that the 'Financial_Forecast_ID' is required. Aren’t the record ID fields populated automatically? I am unclear what the input should be here.
    IMG 1
  • CU25060357-0 Profile Picture
    37 on at
    You'll want to add an expression to keep it unique. Maybe something like:

    concat('FCST-', triggerOutputs()?['body/initiativeid'], '-', formatDateTime(addMonths(variables('StartDate'), items('Apply_to_each')), 'yyyyMM'))

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,041

#2
11manish Profile Picture

11manish 676

#3
Valantis Profile Picture

Valantis 655

Last 30 days Overall leaderboard