Skip to main content

Hello Trailblazers, I have a use case where I have to change the Case ownership. I have to meet some criteria before I change the Owner(The reason why I am not going with OOTB change owner). I am doing it with Flow. I am getting my Queue from Group where Type is Queue. However, I am getting all the Queues in the Org. I want only those Queues where SobjectType = 'Case'. I also tried with Queue SObject but it is not letting me to choose name. It is only giving Ids. #Flow

Get Queues related to Case only

 

Screenshot (414).png

10 respuestas
  1. Eric Praud (Activ8 Solar Energies) Forum Ambassador
    10 ago 2022, 09:48

    ok, I managed it. There may be an easier way, but at least it worked.

    I first have a Get Record on Queues where Sobject Type equals Case. Retrieve all records and all fields

    Create a loop to go over this get record

    Create a single record variable on Groups

    Create a mulit record variable on Groups

    Add an assignment in your loop with this:

    SingleGroup>Id - Equals - Loop>QueueId

    SingleGroup>Name - Equals - Loop> Queue> Name

     

    Add a second assignment in your loop:

    MultiVar - Add - Single var

     

    Create a Collection choice set where the record collection is MultiVar

    Choice Label: Name

    Type: Text

    Choice Value: Id

0/9000