Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How to use Flow to update the Worked By field in the Queue Item entity

Posted on by 54

Hi Guys

I have a custom field on the Case entity called 'new_workedby'. When I change the user name in this field, I want the Queue Item entity 'Worked By' field to reflect the same value. I've had several stabs at doing this with Flow. My latest attempt is below:

So - when the custom field on the Case is changed:

pastedimage1667566117809v1.png

Get the ID of that Case - in this case I've tried to use the object id of the queue item referring to the Unique Identifier of the Case (in the Row ID field below):

pastedimage1667566146096v2.png

Then finally, update the Queue Item 'Worked by' field to reflect the same user that is in the custom field of the case i.e. new_workedby'

pastedimage1667566271883v3.png

I just cannot get this to work - the latest error being:

'Could not find a property named 'objectid' on type 'Microsoft.Dynamics.CRM.queueitem'.'

But there is a field called objectid on the queue item entity! - So I really don't understand why it's erroring?

Any help how to get this flow working would be greatly appreciated.

Many thanks in advance.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: How to use Flow to update the Worked By field in the Queue Item entity

    Hi,

    Please check below article.

    www.inogic.com/.../

    Unrelate action can also be used

    learn.microsoft.com/.../relate-unrelate-rows

  • MikeExeter Profile Picture
    MikeExeter 54 on at
    RE: How to use Flow to update the Worked By field in the Queue Item entity

    Hi Bipin

    Many thanks for this! The final step is to clear out the 'worked by' field that was changed in the very first step - what would be the best way to do this - because when I put an expression of 'null' the flow doesn't like it and fails.

    Kind regards

    Mike

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: How to use Flow to update the Worked By field in the Queue Item entity

    Hi,

    Check below article on how to import flow using zip file

    powerautomate.microsoft.com/.../

  • Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: How to use Flow to update the Worked By field in the Queue Item entity

    Hi,

    Please see below images

    IMG20221105190619.jpg

    IMG20221105190701.jpg

    IMG20221105190711.jpg

    Update A Row -  /systemusers(select workerid field from dynamic content)

    I have exported my flow and uploaded on my GitHub at below location..you can download the zip file and import in your instance if you face any issue while configuring flow based on my images.

    File name starts with Updatequeueitem_

    github.com/.../Power-Automate-Collections

  • MikeExeter Profile Picture
    MikeExeter 54 on at
    RE: How to use Flow to update the Worked By field in the Queue Item entity

    Hi Bipin

    Many thanks for reaching out.

    I'm not that versed with Flow - would you mind expanding on that with a screenshot from Flow perhaps? It would help a great deal.

    Kind regards

    Mike

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: How to use Flow to update the Worked By field in the Queue Item entity

    Hi,

    Get a row by id will fail.

    You will have to use list rows action with filter criteria as below

    _objectid_value eq Case from dynamic content

    Now apply loop and then update a row by id.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans