21

Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Embed Size (px)

Citation preview

Page 1: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building
Page 2: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Microsoft Dynamics AX og CRM

Laurent Ricci Abhishek Ghosh Maciek Zarzycki

Develop your own Windows 8 and Windows Phone 8 apps for Dynamics AX

Principal Software Engineering ManagerMicrosoft

Software Engineer IIMicrosoft

Software Engineer IIMicrosoft

Page 3: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Agenda

• Welcome• Demo – Published Windows Store Apps on

Dynamics AX 2012• Why build your own app?• Demo – Building a Windows Store and Windows

Phone 8 App• Building great apps for Dynamics AX – 5

Practical Tips• Q & A

Page 4: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

DemoDynamics AX apps available on Windows Store

Expense Management Timesheet Approval

Page 5: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Why build your own app?

Appeal to traditional non-ERP users

Simplified targeted experience

• Users without a fixed workstation inside the company• Users with a job demanding travel

Improve efficiency for users working away from their desks

Leverage the device capabilities

Page 6: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

DemoBuilding a Windows Store and Windows Phone app for Dynamics AX

Page 7: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Demo - Build Your Windows Store App• Step I – Build the skeleton• Step II – Build the services• Step III – Display Production Order List• Step IV – Search and Create Production Order

Page 8: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Demo - Build Your Windows Phone App• Step I – Configure Azure Service Bus and ADFS http://www.microsoft.com/en-us/download/confirmation.aspx?id=38413

• Step II – Create custom authentication classhttp://www.microsoft.com/en-us/download/details.aspx?id=38413

• Step III – Implement and deploy the AIF service• Step IV – Build the mobile application connecting to the AIF

service through Service Bus

Page 9: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Communication overview

Windows Azure

Service Bus

Access Control Service

Cloud/Client Applications

(1) User Credentials

(2) Token A (SAML)

ADFS

Firewall

IIS 7.5

Dynamics AX AOS

(7) T

oken

A +

Ser

vice

Req

uest

/ (8

) Res

pons

e

(9) Service Response

(6) Token A + Service Request

My X++ Service

WCF Routing Service

Routingmessages

Page 10: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Building great apps for Dynamics AX5 Practical Tips

Page 11: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Choice of Technology

• Existing skillsets and technology investment strategy• Availability of tools and libraries to accelerate development• Reusability across projects

3 factors to consider

• Windows RunTime Components

Code sharing

• Portable Class Libraries• Linked source files

Code sharing between Windows 8 and Windows Phone 8

Session DE303: Portable Libraries in .NET - Sharing Code between Windows Phone & Windows Store Apps

Page 12: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Invest in a Demo Mode

• Showcase your value proposition – anytime, anywhere• Works Offline• Allows prospective customers to download and play with the

app

Why invest in a Demo Mode?

• Create a local data store, and invoke data from services or local data store based on settings

• For best experience – persist with the data• Reset the data either on re-launch of the app, or have a

refresh button

How to do it

Page 13: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Store Data Securely

Always use encryption to store sensitive data

• Use PasswordVault (http://msdn.microsoft.com/en-us/library/windows/apps/windows.security.credentials.aspx)

For Windows 8:

• Use Data Protection API (DPAPI) (http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh487164%28v=vs.105%29.aspx)

Windows Phone 8:

Page 14: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Consider performance in data driven controls

Use asynchronous calls to preserve UI responsiveness

• Data controls like ListView and GridView have built-in paging support

Use paging in your data controls

• Ax queries support paging out of the box

Design your web services for paged access to data

Only show data that your user really wants to see

Page 15: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Design and Test Your Connectivity Experience

Clarify connectivity requirements

• Access to a reliable Wi-Fi or cellular network• Freshness of data – current data, or cached?• Speed of network – caching required?

Things to consider

Fail gracefully

Use the Simulation Dashboard in Visual Studio for testing

Also see:Plan for network connectivity: http://msdn.microsoft.com/en-us/library/windows/apps/jj863302.aspxBuild 2013: Five Great Reasons to Use the New HttpClient API to Connect to Web Services - http://channel9.msdn.com/Events/Build/2013/4-092

Page 16: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Additional References

- Microsoft Dynamics AX 2012 White Paper: Developing Mobile Appshttp://www.microsoft.com/en-us/download/details.aspx?id=38413

- Code Samples: Developing Secure Mobile Apps for Dynamics AX 2012http://code.msdn.microsoft.com/Developing-Secure-Mobile-02105158

- LOB Lessons Learned: Microsoft Dynamics AXhttp://channel9.msdn.com/Events/Build/2013/2-9193

- Services and AIF development [AX 2012]http://technet.microsoft.com/EN-US/library/hh397321.aspx

Page 17: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Additional ReferencesWindows Store and Windows Phone App Development

Windows Store Apps- Get Started http://www.windowsstore.com- App Samples http://code.msdn.microsoft.com/windowsapps/Windows-8-Modern-Style-App-Samples- Plan your Windows Store app http://msdn.microsoft.com/en-us/library/windows/apps/hh465427.aspx- Using Windows Store App Certification Kit http://msdn.microsoft.com/en-us/library/windows/apps/hh694081.aspx

Windows Phone Apps- Get Started http://phone.windowsstore.com- App Samples http://code.msdn.microsoft.com/wpapps- Design Library for Windows Phone App http://msdn.microsoft.com/en-us/library/windowsphone/design/hh202915(v=vs.105).aspx

Page 18: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Related Sessions

- DE203: Design apps for Windows Phone and Windows Store – for developers

- DE303: Portable Libraries in .NET - Sharing Code between Windows Phone & Windows Store Apps

- WC306, DE306: Line of Business app’s (LOB), Company Hub’s og Sideloading for Windows Phone 8

- DE201: Building Windows Store Apps – Introduction (already completed)

- DE301: What’s new in Windows 8.1 for developers (already completed)

- DE202: Build apps for Windows Phone - Godt begyndt er halvt fuldendt – en introduktion til Windows Phone udvikling (already completed)

Page 19: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

Questions?

Page 20: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

EvaluationCreate a Text message on your phone and send it to 1919 with the content:

AC301 5 5 5 5 5 I liked it a lotSession Code

LaurentPerformance

(1 to 5)

Match of technical Level

(1 to 5)Relevance

(1 to 5)

Comments(optional)

Evaluation Scale: 1 = Very bad 2 = Bad 3 = Relevant 4 = Good 5 = Very Good!

Questions:• Speaker Performance• Relevance according to your work • Match of technical level according to

published level• Comments

MaciekPerformance

(1 to 5)

AbhishekPerformance

(1 to 5)

Page 21: Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building

© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation.  Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.  MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Thank you