Showing posts with label Development. Show all posts
Showing posts with label Development. Show all posts

Monday, April 1, 2019

How to create menu and menu item in dynamics 365?

to display any menu Dynamics 365, you need to create a menu item  as the following 

create a project and add a new item, select user interface from dynamics 365 items as the below 

as you see, there are multiple items items 

output menu item for reports 
display menu item for forms
action menu item for class 

select display menu item and set name, click add

set the label (this label will display for users)  and select object type form 
select the object custgroup for example 


save and build your solution 

Now, we need to create menu for this menu item 

as the same, just right click on your project and add a new item 
select user interface from dynamics 365 items and choose menu as the below 
set name and click add



set label for this menu and select menu item type form 
locate your menu item name  as the below 



you configure it for specific countries by setting country region code

select the menu item, menu item type, and label

create an extension from a menu like accounts recivable as the below 


add sub menu for your main menu


set properties for this menu


then build your project and refresh your browser to see changes.

Dynamics 365 F&O Export Import projects between environments

Sometimes, the developer needs to use the previous development in other projects, so To transfer elements to a different installation, you can use a project package file.


to use a project package file , just export project 
1-Export project

Right-click on your project and click export


set name and select the path that you need to save


A project package contains all the elements from the project.

 Project package files have the .axpp file name extension.

just wait until export finish


2-import project

To use the contents of a project package file, you must import the .axpp file into an installation.
go to dynamics 365 tab in visual studio and click import 



note
The elements from the project package file will be imported into the same model that they were exported from. If that model doesn’t exist in the installation, it will be created during the import process.

you can check this link for more details.

https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/dev-tools/projects

specify the location for project file that you need to import and click overwrite if you need to overwrite the existing element


also, you can open this project in the current solution or create new if you need

you can select all elements or specific element form details, just check or uncheck

click OK


click ok to reload

also, the built must be stopped before the project can be closed


you can stop built from the built tab and click cancel


you can view history to compare the previous version and checked in version to see the difference.

just right click on your element and click view history


Thanks.