Tuesday 26 September 2017

MS Dynamics 365, SDK-SOAPLogger Issue

If you have tried using SOAPLogger solution from the MS provided SDK, you might have noticed that the app will not prompt for username and password for the first time configuration.
Once you try to run this app, you will have to enter the crm server name based on the location of the datacentre.(Eg. crm.dynamics.com, crm8.dynamics.com etc).
once you enter this information, you will get the below information to select if the organisation is provisioned 0365.
If you type Y for yes, then actually it should prompt you for the username and password for the first time configuration.
However, it will not and you may get an exception that looks something like "No username specified ".

Resolution:
To resolve this, open CrmServiceHelper.cs and find for OnlineFederation and locate the below lines.
Comment the code in the highlighted area.

Build the project and run the code and now the app should prompt for the username and password.

Microsoft Dynamics 365 -Issue with Access Team Templates

I have been working on a project which involved creation of dynamic access team based on certain conditions.
As you might already know, dynamic access teams will utilize the access team templates.
In fact, Dynamics 365 comes with an out of the box access team template for opportunity entity.
My requirement was in such a way that, I had to delete the existing access team template and create new ones.
To my surprise, as soon as I removed the existing team template, I was unable to create any connections for opportunities. D365 threw an exception stating "No System Team Template found for opportunity entity".Though I had two team templates for opportunity entity, somehow D365 doesn't consider them as System and hence the issue.

Now, there is no other way than resetting the entire organisation which will definitely be an issue if the same org is being used by a pool of developers.
I would at least expect MS to provide an alert before deletion of this template else MS shouldn't have provided the option for deleting the OOTB team template.

So, if you are someone who is thinking about deleting the existing access team template, NEVER EVER DO THAT.!!

There is a workaround though to resolve the issue connection creation.
Let me know in the comment box if you are in need of knowing that.