Thursday, June 20, 2024

Migrate Advance/ Personal Views to User or Team in Dynamics 365 using XrmToolBox

Migrating Advanced Find/Personal Views in Dynamics 365 with XrmToolBox

This is the second part of our tutorial. In the first part, we discussed how to create a view in Dynamics 365 and share it with different teams or users (link here). Here, we will focus on migrating personal views created using Advanced Find from one environment to another using the XrmToolBox.

Refer to this video for a detailed implementation guide-

Understanding Views in Dynamics 365

Views in Dynamics 365 are essentially filtered lists of records. By default, Dynamics 365 provides several views such as Active Contacts and Inactive Contacts. These views display selected fields like Full Name, Email, and Company Name. While you can create general views using the maker portal in Power Apps, this post focuses on creating a personal view using Advanced Find and sharing it with other users or teams.

We have two types of views in Dynamics 365:

1. Out-of-the-box (OOB) views: These can be created directly in the Power Apps maker portal. However, these views have a limitation - they cannot be shared with specific users or teams.

2. Advanced Find personal views: These are custom personal views created using the Advanced Find feature. Unlike OOB views, these can be shared with other users or teams.

In this blog post, we will focus on migrating personal views created using Advanced Find from one environment to another (e.g., from a development environment to a production environment) using the XrmToolBox. Check below snapshot for visual representation of same - 

Prerequisites

Before we start, ensure you have the following:
- XrmToolBox installed on your machine. You can download it from the XrmToolBox official website (https://www.xrmtoolbox.com/).
- Appropriate permissions in both the source and target Dynamics 365 environments.
- A user account with the necessary privileges to create and share views in Dynamics 365.

Step-by-Step Guide

Step 1: Connect to Your Source Environment

1. Open XrmToolBox.
2. Click on the "Connect" button to establish a connection with your Dynamics 365 environment.


Once connected, go to the "Tool Library" and search for the "Personal View Migration Tool".
We need to install this tool in XrmToolBox to migrate views between environments.
3. Click on "Open Tool Library."


Search for "Personal View Migration Tool," select it, and click on the install button.

Once installed, go to the tool and open "Personal View Migration Tool."

Click on the "Connect Source" button to establish a connection with your source environment.
Click on the "Connect Target" button again, this time connecting to your target Dynamics 365 environment.


Click on Load user button to load all the users and teams

Now, click on "Load Views" to retrieve the views from the source environment.

Locate the personal view you want to migrate. Personal views are typically listed under the user's name who created them.

Click on Load sharing button to see if the personal views are shared to any user or team.

Select the desired views and click on "Migrate" button

Once the migration is done, you'll see "Migration Completed" message

Now, connect to Your Target Environment.
Navigate to the relevant entity and check if the personal view appears under "Views" 


Additional Notes

- Backup Your Views: Always keep a backup of your views before making any changes.
- Test in a Sandbox: Before migrating views to production, test the migration process in a sandbox environment.
- Permissions: Ensure the user account used for the migration has appropriate permissions in both environments.
- Sharing Views: After migrating, you may need to share the view with other users or teams in the target environment.

Troubleshooting - Users and Teams: The users or teams in the source environment may differ from those in the target environment. Ensure that you reassign the views to the appropriate users or teams after migration.

Conclusion

Migrating personal views between Dynamics 365 environments using XrmToolBox is a straightforward process. By following the steps outlined in this guide, you can ensure a smooth transition of custom queries, helping maintain consistency and efficiency across different Dynamics 365 environments. 
To learn more about Dynamics 365 and other related tutorials, check out my YouTube channel, Power Dynamix, and my blog, here
If you have any questions or need further assistance, feel free to comment below.

How to Create and Share a Personal View to User or Team in Microsoft Dynamics 365

How to Create and Share a Personal View to User or Team in Microsoft Dynamics 365

Hello everyone, welcome back to our Dynamics 365 series. In this post, we'll delve into creating and sharing personal views in a model-driven app. Unlike OOB views, personal views are custom views created using the Advanced Find feature, tailored to your specific needs. Let’s walk through the process step-by-step.

Refer to this video for a detailed implementation guide-


Understanding Views in Dynamics 365

Views in Dynamics 365 are essentially filtered lists of records. By default, Dynamics 365 provides several views such as Active Contacts and Inactive Contacts. These views display selected fields like Full Name, Email, and Company Name. While you can create general views using the maker portal in Power Apps, this post focuses on creating a personal view using Advanced Find and sharing it with other users or teams.

We have two types of views in Dynamics 365:

1. Out-of-the-box (OOB) views: These can be created directly in the Power Apps maker portal. However, these views have a limitation - they cannot be shared with specific users or teams.

2. Advanced Find personal views: These are custom personal views created using the Advanced Find feature. Unlike OOB views, these can be shared with other users or teams.

In this blog post, we will focus on Creating and Sharing a Personal View to User or Team in Microsoft Dynamics 365

Step-by-Step Guide to Creating a Personal View

1. Open Advanced Find:
    - Navigate to the Advanced Find feature in Dynamics 365. You can find this option in the settings or by clicking on the funnel icon.

2. Build Your Query:
    - Choose the entity you want to create a view for (e.g., Accounts or Contacts).
    - Add conditions to filter the data as needed. For instance, you can filter accounts where the "Account Number" is not empty.

3. Select Columns to Display:
    - Click on "Edit Columns" to select which columns you want to display in your view. You can add, remove, or rearrange columns as required.



4. Save the View:
    - Once your query is set, click on "Save As" to save the view.
    - Give your view a descriptive name (e.g., "June 18a View").

5. Access the Saved View:
    - The saved personal view will be available under "My Views" in the Advanced Find menu.


Sharing the Personal View

1. Navigate to Saved Views:
    - Go back to the Advanced Find menu and select "Saved Views".
    - Choose the view you want to share.

2. Share the View:
    - Click on the "Share" button (represented by a share icon).


In the sharing window, click on “Add User/Team” to select the users or teams you wish to share the view with.



If you want to share the view to a team then simply select Team from the "Look for" field dropdown and select your team.

3. Assign Permissions:
    - Assign the necessary permissions such as Read, Write, Delete, Assign, or Share.
    - Confirm by clicking "Share".

4. Verify Shared View
- Log in with the user account you shared the view with to ensure they have access to the view.

Limitations and Workarounds

A key limitation of personal views created using Advanced Find is that they cannot be imported directly into a solution for deployment. To transfer personal views from one environment to another (e.g., from development to production), you can use tools like the XRM Toolbox.

1. Using XRM Toolbox:
    - Install and open the XRM Toolbox.
    - Connect to both the source and target environments.
    - Use the “View Transfer Tool” to migrate personal views between environments.

Conclusion

Creating and sharing personal views in Microsoft Dynamics 365 CRM enhances data accessibility and collaboration within teams. While there are some limitations, tools like XRM Toolbox provide effective workarounds for transferring views across environments. If you have any questions or need further assistance, feel free to comment below.

For more insights and tutorials on Dynamics 365, visit our YouTube channel and blog for detailed articles and videos. link here

Followers

Power Dynamix YouTube Videos