web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Workflow for Case Entity

(0) ShareShare
ReportReport
Posted on by 903

Hello,

I want to create a workflow for the Cases entity.
Firstly, by default whenever a case is created the Owner field will be recorded with "System". I want to change that based on some conditions when the case is created.

0447.Case.PNG

My case form:

1781.Case-Form.PNG
What I want to achieve is the following:

  • Whenever a case is created, I want to update the owner field based on a country label field condition.
    E.g. If the country selected as the US I want to update the Owner field to test@microsoft.com.
    If any other country was selected I want to update the Owner field to test2@microsoft.com.

Could you please explain in detail and provide an example to achieve the following workflow?

Any help will be greatly appreciated.
Thank you!

I have the same question (0)
  • Suggested answer
    Ankit Sabharwal Profile Picture
    on at
    RE: Workflow for Case Entity

    Hy Partner,

    Sooner or later workflow is going to be deprecated feature. Instead Power Automate( Flow ) will be replacing it. 

    Below is the article for the same :-https://docs.microsoft.com/en-us/power-automate/connection-dynamics365. Above article states how flow can be interact with Dynamics 365.

    Coming back to your requirement, I have tried to achieve it using the flow and successfully able to do it.

    In order to create the flow, go to flow.microsoft.com and sign in with your system administrator credentials which you are using to customize the dynamics 365 instance. Click on My flows on left hand side navigation panel and then click on New . When you click on New you will get various options to create. Select Automated flow from blank. 

    Once you do so, you will be asked to select what event should trigger the flow. In our case , when case record is created:-

    pastedimage1580011208088v1.png

    After that click on Create Step. Once you do so, you will get an option now to put the organization Name. Kindly not e this organization name will not be the organization unique name. To get the organization name of your environment, you need to browse https://admin.powerapps.com/environments. If there are multiple environments associated with the user, it will show you the list , you need to select the appropriate one.

    pastedimage1580011395292v2.png

    After above, click on next step added. Once you click on it, the search for the action named Check condition as we need to check whether above created case is created with country US or not. Once you select the action, you can put the dynamic content  (Select the field of the case ) and place the criteria for it as follows :-

    pastedimage1580011847304v3.png

    After this update the owner field with system user id and select the owner type as system users .

    Hope this helps.

    Best regards,

    Ankit

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

     

  • EBMRay Profile Picture
    903 on at
    RE: Workflow for Case Entity

    Hello Ankit,

    Firstly, thank you for providing an example of this flow, well explained.

    I have already tried to create this flow in Power Automate using Dynamics connectors and CDS connectors.

    I have added a list record action to get the internalemail of the owner I want using a filter query and a compose action to get from this action the systemuserid.
    Please take a look at the screenshot below:
    OwnerFlow.PNG

    Unfortunately, the flow keeps failing with a message "Resource not found for the segment (OWNER ID)".
    OwnerError.PNG

    In addition, I have tried to find the Owner entity so I can use the same filter query in this entity to get the GUID of the user, but the flow couldn't find this entity knowing that it's selectable from the entity name dropdown in the list record action.

    Do you have any idea about the Owners entity? Mainly, if I find this entity it will resolve my issue.

    Otherwise, I have to use workflow for dynamics so I can achieve my requirements.

    Looking to hear from you.
    Thank you!

  • Verified answer
    Ankit Sabharwal Profile Picture
    on at
    RE: Workflow for Case Entity

    Hy EBMRay,

    Thanks for replying back. After seeing your post, I tried to edit my sample flow but unfortunately not able to search the CDS connectors. Through Dynamics Connectors , I am able to formulate the flow as follows :-

    pastedimage1580057041005v1.png

    pastedimage1580057088784v2.png

    pastedimage1580057109053v3.png

    The only difference, which it seems to me is putting the top count as 1 , but I know it is something not related , as resource segment error shoots up when plural entity or CollectionSchemaName is not correct.

    I hope above connectors may help you.

    Look forward to hear back from you.

    Hope this helps.

    Best regards,

    Ankit

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

  • Inogic Profile Picture
    651 on at
    RE: Workflow for Case Entity

    Hi,

    First, create a new field (Created By Portal User) on case entity to identify whether the case is created from the portal or not. Add this field on Case portal form and make it hidden. When new case record is opened in the portal, set this field as logged-in user(Contact). By this field we can identify whether a new case is created from portal or not. Create Power Automate or Workflow which will trigger on creation of case record to update the Owner of the case based on the Country condition.

    Hope this helps.

    Thanks!

     

  • EBMRay Profile Picture
    903 on at
    RE: Workflow for Case Entity
    Hello Ankit,
    Thank you for your support, I was able to resolve this issue using User from the dynamic content instead of the expression in the update record action.
     
    You will be able to find CDS connectors (current environment) when you create the flow in "Solutions".
    Concerning the resource segment error, I am sure that i have used the right plural entity schema name for the systemuserid but no idea why it's failing.
    Besides, I have tried to change the users in the filter query some users work and some users don't work which means fails the update record action.

    Why do you think this problem occurs? (Knowing that for some cases they are already assigned in the Owner field).
    Thanks again!
  • Ankit Sabharwal Profile Picture
    on at
    RE: Workflow for Case Entity

    Hy EBMRay,

    Thanks for replying back and marking my answer as verified. Glad to hear that it works for you. I would suggest for next query , can you open another thread please, so we can discuss on it in separate thread as it will intermingle.

    We can test it out and check regrading your query.

    Thanks,

    Ankit sabharwal

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 117 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 115

#3
Erin Lubben Profile Picture

Erin Lubben 66

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans