Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Assign the oldest un assigned case using Workflow

(0) ShareShare
ReportReport
Posted on by

Hi,

How can I pick the oldest unassigned case and assign that case to someone using workflow.

I want to trigger the workflow by creating a button using Ribbon Workbench.

How do I I create the query to get the oldest unassigned case in a workflow and assign the user who triggered the workflow. I want the query result to just return one record and assign that record to someone.

  • Community Member Profile Picture
    on at
    RE: Assign the oldest un assigned case using Workflow

    How do you secure the PowerAutomate. Making sure it is not being used outside the context of dynamics 365?  Since the power Automate is just an API?

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Assign the oldest un assigned case using Workflow

    Hi 

    It's not clear what the conditions are for your specify unassigned cases.
    Personally, I understand it to mean that the creator and owner fields have different values, also you need oldest one.

    So you need retrieve all cases to find one case that meet these conditions, then assign it to one user who execute process.

    If so, workflow can't do it, Maybe you can try to use power automate(https://us.flow.microsoft.com/en-us/ ) to create an Instant flow to achieve it.

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,099 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,884 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans