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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics 365 View creation based on condition.

(0) ShareShare
ReportReport
Posted on by 6

Hello All Experts,

I have to create a view in which i have to apply filter for.

1. active records.

2. the record belongs to users territory.

first point is doable, but how to check for the other point as a filter in the advanced find.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    Hi,

    you could look or created by ( user from the dropdown by going related fields) and from there select the user territory?

    just an example below:

    teritory.JPG

  • EmployeeOcta Profile Picture
    6 on at

    Hello Rawish,

    Is it possible to set territory dynamically, that means, in the above case i want to fetch Opportunities records based on logged in user's territory.

  • Community Member Profile Picture
    on at

    Hi,

    Please try this:

    5050.1.PNG

  • EmployeeOcta Profile Picture
    6 on at

    Hello Saad,

    I want to fetch record based on loggin user's territory is equal to the entity record territory.

    i believe i am able to put my question correctly.

  • Community Member Profile Picture
    on at

    Hi,

    Have you tried above approach. it will fetch you the all the opportunities of current user's territory .

  • EmployeeOcta Profile Picture
    6 on at

    Hello saad,

    In my case I have two custom entity and one user entity.

    Say in place of opportunity c1 entity.

    In place of territory c2 entity and the same above work I need to do.

    Will it be feasible.

  • Suggested answer
    Goutham A Profile Picture
    2 on at

    yes, you can acheive it using 2 views. I had a similar requirement

    If i understand your requirement correctly, you need to get all opportunities assigned to users who are in the same territory as Current User.Let me know if wrong

    First create a view under territories to get and save the current users's territories as shown below. lets say we save the view as "Current User Territories"

    aa234.jpg

    Then go to opportunities, and query using the  as below. this would give you desired results.

    aa234.jpg

    <<Please mark my answer as verified if it resolved your query>>

  • Suggested answer
    StefanS365 Profile Picture
    3,575 Most Valuable Professional on at

    Hi there,

    Better late than never ;-)

    Here's your dynamic view to show (in this case) Opportunities) that belong to the user's territory.

    MyTerritory.png

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans