Total Pageviews

Search This Blog

Friday, December 31, 2010

Contd..How to Add multiple Search Criteria using EWS

This is in continuation with the previous posts on integrating Dynamics AX with Exchange Web Services without installing Outlook on your box. If you missed the previous posts, you can browse them from here:

http://daxdilip.blogspot.com/2010/12/how-to-read-email-and-download.html

http://daxdilip.blogspot.com/2010/12/updated-code-to-read-email-using-ews.html


Had this requirement to add multiple search criterias for filtering emails based on different subjects. For this, I had to use the SearchFilterCollection method to achieve it, below is the code snippet on how to achieve it. The code is pretty self explanatory as the SearchFilterCollection object can handle logical operators like Or, And etc. and you can pass multiple SearchFilters to it as shown here.






If you want to delve more indepth, you can read the MSDN article below: http://msdn.microsoft.com/en-us/library/dd633695(EXCHG.80).aspx

Wednesday, December 29, 2010

AIF Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section.

A small tip when you are working on Dynamics AX AIF Services running on VPC

A background - I have a very simple AIF .Net Client App which has been very handy for me to test AIF Services on any environment. This client app consumes the AIF Customer Service to create customer records in AX.

Issue

Recently, when I was trying to generate the proxy for one of the AIF Service which was running on a VPC I ran into this error below (Note the client app project was on my host machine and I was opening the VS project via the shared drive)
"Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section."


Solution

Copied the Visual Studio Client App Project into the VPC, Built it and re-generated the proxy for the service and now it works

Link to Dynamics AX Code Samples on MSDN

Dynamics AX Code Samples on MSDN, Just enter the search text "Dynamics AX" to do a search in the code gallery

http://code.msdn.microsoft.com/Project/ProjectDirectory.aspx?ProjectSearchText=Dynamics%20AX

Friday, December 24, 2010

Wishing you Merry Xmas and A Happy 2011

Wishing you all my blog readers Merry Xmas and A Very Happy 2011.

Dynamis AX Integration with QAS for Address Verification

Introduction
QAS is a third party address verification service which gets the full address from a given postcode and street. You can find more details in their website
http://www.qas.co.uk/products/capture-name-and-address-data/pro.htm
We had to do integration for Australian Post Codes and Street Addresses. So, we were given the web service by QAS which we needed to plug in to AX

Integration with Dynamics AX 
a. Consume the QAS Web Service by going through Tools > Development Tools > Application Integration Framework > Add Service Reference
b. Once the Service Reference is added, write a class to instantiate the proxy and pass the zip code and street name
c. Here is a sample code snippet which does the call to QAS and retreives the full address
















We are calling this class from different forms like Customers, Sales Orders, CRM wherever we need to validate address with QAS