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 / Automating Task Priori...
Power Apps
Unanswered

Automating Task Priority - Looking for Ideas

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Okay I need some suggestions. I have a Client that needs a Request process that Creates and Tracks the completion of subtasks. Initially I took the approach that I would just update the Estimated Completion Date to reflect the order as things were assigned priority, but now I have a redefined requirement that changes things a bit. 

 

The initial request will be assigned a priority value 1-6. Then the client wants to be able to adjust the piority to reflect business need with a prioirty of zero (0) if the request is to be put at the top of the list. The challenge I am having it these requests have up to seven (7) tasks associated with that a passed along to seperate processing queues depending on their task type. The associate task need to be reorder in priority within those queues when the parent request's priority order changes. 

 

I would love any ideas... because at the moment I am perplexed... 

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Patch,

     

    did you ever have any luck with this?  I'm looking to do something similar.  I have a list of priorities, numbered 1 to 20.  If I change priority 5 to priority 1 I need all the other priorities to change automatically, e.g. 1 changes to 2, 2 changes to 3 etc.

     

    Thanks,

    Sean

  • SWilson_GS Profile Picture
    4 on at

    @Anonymous and @Anonymous I have the same need if you ended up finding a solution and could point me in a direction!

     

    Thanks!

     

    Sara

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Sara,

     

    I built a solution for this but it is not that fast.  I have all my tasks in a gallery and I have added up and down icons for each task.  Each task has a Priority Rank.  If the up icon is clicked I subtract 1 from the item and vice versa if the down icon is clicked.  I use an updateif to update all the items in the data source.  See code below.

     

    //Update the current task

    If(

        ThisItem.'Priority Rank' > 1,

        UpdateIf(

            MyTasks,

            'Task' = ThisItem.'Task',

            {'Priority Rank': 'Priority Rank' - 1}

        )

    );

    //Update the other tasks

    If(

        ThisItem.'Priority Rank' > 1,

        UpdateIf(

            MyTasks,

            'Task' <> ThisItem.'Task' And 'Priority Rank' = varRank - 1,

            {'Priority Rank': 'Priority Rank' + 1}

        )

    );

  • SWilson_GS Profile Picture
    4 on at

    Oh cool! OK I’ll see if we can make something similar work. Thank you for sharing!

     

    Sara

  • PAJ Profile Picture
    280 on at

    .

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard