April 01, 2018

VSTS setup MSDyn365FO

Hi Guys,

Lets see how to setup the VSTS in your LCS project and followed by how to use the VSTS version controlling for your development stuff.
Note: This post may refer some old version of D365FO, please check all available option while preforming the below steps.

1. Create a project on LCS
2. Deploy on Azure
3. On azure management portal, create a VSTS
4. Open this new link and generate a token for LCS project
5. On LCS add this VSTS and use this token
6. Authorize VSTS on LCS
7. Now need to connect this VSTS with VS
· Start Visual Studio.
· From the Team menu or Team Explorer, go to Connect to Team Foundation Server > Select Team Projects > Servers.
· Add your Team Services account ({youraccount}.visualstudio.com).
· Select your team project, and finish connecting.
image

8. Enter you TFS server name/URL
image

image

9. Now select the project that you need to connect,
image

10. For first use configure the Visual Studio
imageimage

11. Now, let's check the setting, Create a project in Visual Studio and add an object. Now Right Click on Solution click on “Add solution to Source Control”
image

12. Now let's check in the object/Change to VSTS; Again right click on Solution and select “Check in”
image

13. Enter some comment and click on Check-In
image

While prompt, confirm the check-in.

14, You must get your project in VSTS
image
Cheers,
Harry

February 09, 2018

Mobile app development in D365 for FO- Part II

Hi Folks,

In my last post, Mobile app development in D365 for FO - Part I, we discussed how to create a simple workspace for the mobile platform. In today's post, I will share some of the deployment methods for mobile workspace.

In the current version of the mobile app, we can create two types of workspaces that are available to deployment.

a. In database
b. In metadata

a. Database workspaces:
When a user builds an app workspace using web API, it will have stored in the database and anyone can edit or delete such pages.

Database pages easy to create with navigation only. Mobile app framework will record user action and convert into logic, pages actually work the same as a user will record for it. It’s important that the user has clear visibility of what user requirements before creating a page or action.
There are three sections in mobile workspace

i. Pages: Pages that will appear in the mobile workspace, to display data.
ii. Action: To perform CRUD operations.
iii. Logic: Attach the JS file.

Current mobile app framework is flexible in terms of designing flow, the user must be very careful how the user is recording the business process while configuration.

b. Metadata workspace

These pages need to be developed using classes in VS. Metadata workspaces cannot be created directly in VS, firstly user needs to create a workspace in user database using the above method and then attached user workspace to it.


-Harry Follow us on Facebook to keep in rhythm with us. @theaxapta

November 23, 2017

How to Delete a model in Dynamics 365 for FO


I was trying for this for very long time, on initial stage of development it was one of the biggest headache for me. HOW TO DELTE A MODEL. So now finally I come to conclusion on this.

Note: I would recommend check with all other developer who is sharing the same dev machine before deleting this to make nothing will go wrong. Take a backup of your code.

Prerequisite:
1.     Login to server using admin credentials
2.     Check your model directory it must be sore under below path/folder
C:\AOSService\PackagesLocalDirectory/<your model>





There can be two scenarios here,
1.     Model belongs to its own package
2.     Model belongs to standard (existing) package.

1.     If your model belongs to its own package (For example: An extension package with no other models in the package):
a.      Stop the following services: The AOS web service and the Batch Management Service
b.     Delete the package folder C:\AOSService\PackagesLocalDirectory\<your model>
c.      Restart the services from step 1
d.     If Visual Studio is running, refresh your models (Visual Studio > Dynamics 365 > Model management > Refresh models)
e.      In Visual Studio, perform a full database synchronization (Visual Studio > Dynamics 365 > Synchronize database...)





2.     If your model belongs to a package with multiple models (For example, <your model> overlays Application Suite):
a.      Stop the following services: The AOS web service and the Batch Management Service
b.     Delete the model folder C:\AOSService\PackagesLocalDirectory<PackageName>\<your model> (In this example PackageName=ApplicationSuite)
c.      Restart the services from step 1
d.     In Visual Studio, refresh your models (Visual Studio > Dynamics 365 > Model management > Refresh models)
e.      In Visual Studio, build the package that the deleted models belonged to (Visual Studio > Dynamics 365 > Build models...)
f.       In Visual Studio, perform a full database synchronization (Visual Studio > Dynamics 365 > Synchronize database...)


Enjoy..
Harry.

Disc: This post is referred from here.


November 11, 2017

Mobile app development in D365 for FO - Part I

Hi Folks,


This is my first post on mobile development, here I am going to share basic development steps (that’s doesn’t require any coding really.) J MS released a new mobile app for Android and iOS named as “Microsoft Dynamics 365 Unified Operations”, MS keep releasing new exciting feature and support in a timely manner.

1.      Download Microsoft Dynamics 365 Unified Operation app from your mobile store



2.      For the first time, you need to use your D365 application URL and valid credentials to open this app



3.      Now go to your web browser and open D365. On the right top corner select setting > Mobile App






4.      Your browser will split into two portions, left one for D365 web browser while right side for mobile application configuration, like below


 
5.      For this demo, let’s take an example of Customers. Click on create button


6.      We will add a new mobile workspace for Customers and a page for “All customer”


7.      You will be navigated to the next screen for “All customer”, where you need to select fields for this App page. Go to Accounts receivable > All customers and click on “Select fields” in all customer page.





8.      When you click on “Select fields” on AX side “All Customer” form few fields will be highlighted, shown in below image

















9. Click on “+” sign next to each field to add them to your mobile app page. As you select these fields they will appear in right side window where you are configuring your mobile app. Once you select all your required fields click on Done.



10. On the next screen, to set any further property click on the Property button which is available for each selected field.


11. Now click on Back > Done > Save.
12. As a final step, you need to publish this app workspace, select your workspace and click on Publish button on top.


13. You get a system notification on the successful action.


14. I have tested this on an android device, go to your app. I hope you already logged in successfully in the mobile app earlier. Now pull down the screen to refresh ( as we do in most of the mobile app like Facebook, LinkedIn, Outlook). A new workspace must appear in the app, Customers, below are the screenshots from the app.


 






Here the sequence of a field that you selected during field selection for a page is very important, we choose Customer group first than Customer account hence we got Customer group on top of each record. So, choose your fields carefully.

In the next post, we will discuss how to create a new record using the mobile app. We will be continuing the same app there.

Enjoy…!!!

Thanks
Harry