cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ARAlmac
Helper II
Helper II

Auto-Populate Next Month

Hi all,

 

I am working on a Project Percentage complete app. The aim of it is to give monthly figures on the project percentage complete. 

I have a dropdown where the user selects the month and year and enters the percentage complete. Like this:

ARAlmac_0-1649070872981.png

 

I have been asked if it is possible to auto-populate the next month, when "Add Step" is clicked. At the minute it just patches a blank record.

 

I have thought and tested a few ways out but with no luck! 

 

Anyone any thoughts?

 

Thanks

2 REPLIES 2
v-qiaqi-msft
Community Support
Community Support

Hi @ARAlmac,

Do you want to automatically add a new record for the next month according to some rules?

Could you please tell me the rule because there is something difference between March and April?

 

 

Best Regards,
Qi

Hi @v-qiaqi-msft ,

The user will select the "Add Step" which currently has this code:

 

Patch(
    D365_BreakdownPercentages,
    Defaults(D365_BreakdownPercentages),
    {
        cr348_ProjectBreakdownID: LookUp(
            D365_ProjectBreakdowns,
            cr348_projectbreakdownid = SelectedBDPerc.cr348_projectbreakdownid
        )
    }
);

 

I would like the next Month to be added. For example, if the last month in the gallery is September, then when add row is selected, October is auto-populated... next one November. This is a choice field from Dataverse.

 

Any thoughts?

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,151)