Monday, September 18, 2017

RetrieveMultiple Using Newest Dynamics 365 SDK Gives Weird Behavior When Filtering on StateCode

Why in the world would it now be necessary to search using a conditionexpression on statecode by the strings "Active" or "Inactive"  instead of just taking the integer values of the optionset when performing a retrievemultiple request in a custom workflow activity.




 if (targetChildStateCode == 0)
                {
                    strTargetChildStateCode = "Active";
                }
                else if (targetChildStateCode == 1)
                {
                    strTargetChildStateCode = "Inactive";
                }
                int targetChildStatusReason = TargetChildStatusReason.Get(activityContext);
                tracingService.Trace("targetChildStateCode: "   targetChildStateCode.ToString());
                tracingService.Trace("targetChildStatusReason: "   targetChildStatusReason.ToString());
                tracingService.Trace("got parameters");
                tracingService.Trace("defined criteria and paging info");
               
                RetrieveMultipleRequest rmr = new RetrieveMultipleRequest();
                RetrieveMultipleResponse resp = new RetrieveMultipleResponse();
               
                QueryExpression query = new QueryExpression()
                {
                    EntityName = childEntityName,
                    ColumnSet = new ColumnSet(true),
                    Criteria = new FilterExpression
                    {
                        FilterOperator = LogicalOperator.And,
                        Conditions =
                        {
                            new ConditionExpression
                            {
                                AttributeName = childLookupAttributeToParent,
                                Operator = ConditionOperator.Equal,
                                Values = { primaryEntityId.ToString() }
                            },
                            new ConditionExpression
                            {
                                AttributeName = "statecode",
                                Operator = ConditionOperator.NotEqual,
                                Values = { strTargetChildStateCode }
                            }
                        }
                    }
                };
 


-head scratcher....

Friday, August 25, 2017

Plugin Profiler Causing Problems

Working in Dynamics 365 doing plugin development was problematic yesterday.  I've seen more than one occasion now where I can't get a plugin to work properly and there is no obvious reason why.  It turned out that uninstalling and reinstalling the plugin profiler solution fixed the issue with no code change.

The profiler must be caching something......

I hope this helps someone else and I am not the only person seeing this wonky behavior!

Saturday, November 12, 2016

Giving Up My MVP!!

Yes, I am giving up my MVP award at the end of the year.  I am retiring it to go work or Microsoft as a Premier Field Engineer.  I am shocked at how much I have to learn and am so excited for where this adventure takes me in the future.  I will try to keep you all updated.   I am so thrilled to have helped so many people over the years.  I know that I have made web requests over JScript and .NET much easier for some people and I continue to get a quarter of a million page views a year.

Thanks!!

Thursday, September 8, 2016

Today I Learned in Dynamics CRM: Field Service Bookings Do Not Go Straight to Outlook, but the App Syncs!

Today I Learned in CRM: Field Service Bookings Do Not Go Straight to Outlook.  I suppose if you are a field service tech you can live right in the mobile application.  The mobile app also syncs!  So if you are offline you can work with your data and when you come online it will synchronize.

Friday, April 8, 2016

Today I learned in Dynamics CRM: Cannot Create New Views for Connection Roles

So today I learned that you cannot create new system views for connection roles in Dynamics CRM 2016 on-premise update 1.  The system does, however, allow you to customize the existing connection roles in the system.  So I had to hijack the inactive roles view and make it into something different.  I hope they allow this in the future.  My customer just wanted a view that only shows roles from a particular category.  Again, I was able to work around this by repurposing the inactive roles view.

- Have a great Weekend

- Oh, and I am down 35 lbs since December to 225 from 260!!

Tuesday, February 23, 2016

How Do You Become a Microsoft Dynamics CRM MVP? What is it Like? WHAT DO WE GET?!?!

This months feature blogpost for Summit Group Software will tell us just that.  I will give you an insiders overview of the MVP program and why I love it so much.  :)

http://www.summitgroupsoftware.com/blog/insiders-overview-microsofts-mvp-program

Today I Learned in Dynamics CRM - Email Router Tip

I am allowed to still admit I don't know things.   That being said.

Pressing Approve or Reject Email address on a mailbox or queue box in the Dynamics CRM web application will also enable or disable them in the email router.

#TheMoreYouKnow

-Happy Tuesday!