Wonderful tips and tricks for Visual Studio 2012

Best Bet or Promoted Results in SharePoint 2013


Hi,

Let us take scenario where for a particular search term (parental in our case) we want to show a particular document as the top link to the user in the results.

For this we need to configure Query Rules in SharePoint 2013.

Go to Site Settings à Query Rules

Here we have selected “Local SharePoint Results” for the context on which the Query Rule will run.

Next click New Query Rule to create a new query rule

Give name to the rule and specify the condition

For e.g. if the query matches either parental or parental leave then show promoted results.

Click on Add Promoted Results to configure the promoted result.

Here in the Add Promote Result box we have specified the Title for the promoted result and also the URL of the word document that should show up in the search result

Save it and search with the term parental

The result

Hope it helps.

Adding refiner count in Refinement Web Part in SharePoint 2013.


Hi,

Out of the box the Refinement web part shows the different filters, but it doesn’t show the number of count for the results.

For this we need to modify Filter_Default.html page that is being used by these filters.

Go to the master page gallery

https://test.sharepoint.com/sites/contoso/_catalogs/masterpage/Forms/AllItems.aspx

Select Display Template à Filters à Filter_Default.html

Download the file

Make the following change in it

Change the ShowCounts to true and upload the file.

Do the search again and we will see the count

Hope it helps.

The ‘label’ attribute is not declared error while importing solution in CRM 2011


Hi,

We got this “The ‘label’ attribute is not declared” while importing one of our solutions in CRM 2011. It gave the following details for the error

ame” /><attribute name=”parentcustomerid” /><attribute name=”telephone1″ /><attribute name=”emailaddress1″ /><attribute name=”statecode” /><order attribute=”fullname” descending=”false” /><link-entity name=”postfollow” from=”regardingobjectid” to=”contactid” alias=”aa”><filter type=”and”><condition attribute=”ownerid” operator=”eq-userid” /></filter></link-entity><attribute name=”contactid” /></entity></fetch></fetchxml><LocalizedNames><LocalizedName description=”Contacts I Follow” languagecode=”1033″ /></LocalizedNames><Descriptions><Description description=”Contacts that you follow.” languagecode=”1033″ /></Descriptions></savedquery></savedqueries></SavedQueries><Visualizations><visualization><savedqueryvisualizationid>{889CE563-1263-E211-8BE5-984BE17C6693}</savedqueryvisualizationid><datadescription><datadefinition><fetchcollection><fetch mapping=”logical” aggregate=”true”><entity name=”contact”><attribute groupby=”true” alias=”_CRMAutoGen_groupby_column_Num_0″ name=”address1_city” label=”City” /><attribute alias=”_CRMAutoGen_aggregate_column_Num_0″ name=”fullname” aggregate=”countcolumn” /></entity></fetch></fetchcollection><categorycollection><category alias=”_CRMAutoGen_groupby_column_Num_0″><measurecollection><measure alias=”_CRMAutoGen_aggregate_column_Num_0″ /></measurecollection></category></categorycollection></datadefinition></datadescription><presentationdescription><Chart Palette=”None” PaletteCustomColors=”149,189,66; 197,56,52; 55,118,193; 117,82,160; 49,171,204; 255,136,35; 168,203,104; 209,98,96; 97,142,206; 142,116,178; 93,186,215; 255,155,83″><Series><Series ChartType=”Bar” IsValueShownAsLabel=”True” Color=”purple” BackGradientStyle=”TopBottom” BackSecondaryColor=”112, 142, 50″ Font=”{0}, 9.5px” LabelForeColor=”59, 59, 59″ CustomProperties=”PointWidth=0.75, MaxPixelPointWidth=40, DrawingStyle=Wedge”></Series></Series><ChartAreas><ChartArea BorderColor=”White” BorderDashStyle=”Solid”><AxisY LabelAutoFitMinFontSize=”8″ TitleForeColor=”59, 59, 59″ T

We saw one attribute tag with label attribute in it. Removing the label attribute and importing the solution back resolved the issue.

Hope it helps

Reviewed Book: Microsoft Dynamics CRM 2011 Application Design


Hi,

Last year I got an opportunity to review the “Microsoft Dynamics CRM 2011 Application Design” book http://bit.ly/135Wi8J
written by Mahendar Pal (Packt Publishing). Mahendar is Most Valuable Professional (MVP) for Microsoft Dynamics CRM. He is a good friend of mine and we stay in touch with each other and mostly discuss things around CRM. The review process was roughly around 6 months.

Now about the book, I found it to be quite unique in regards that it talks about the design and implementation aspect of Microsoft Dynamics CRM 2011. There are other good books available in the market on Microsoft Dynamics CRM, but they mostly talk about and explains the features available within the product. This makes the book helpful to both readers who are new to CRM as well as experienced.

There are total 8 chapters in the book in which readers will learn the basics of CRM 2011 and will also learn how to implement and create applications like Project Training Enrolment System, Employee Recruitment Management System, Hotel Management System etc. using CRM 2011. The readers will also get to learn how to create Silverlight applications, ASP.NET pages which integrates with CRM 2011.

Reading books is my hobby so was happy to get early access to the chapters for reading and reviewing and thanks to Mahendar and Packt Publishing for giving me this opportunity.

Lastly and most importantly I would also like to thank my friend and colleague Hina Mehta who helped me during the review process. She is an expert in CRM and CCA (which is an integral part of CRM now and there are very few people who have expertise on it). So her opinion and suggestions mattered a lot. You can subscribe to her blog here http://hinamehta14.wordpress.com/

All said and done,

Order a copy for yourself

http://www.packtpub.com/microsoft-dynamics-crm-2011-application-design/book

Bye.

SharePoint Designer 2013 Preview issue while creating External Content Type.


Hi,

Check out the following discussion before trying to create External Content Type using SharePoint Designer 2013 preview.

There seems to be a bug in it and unfortunately i have wasted enough time to get it working.

http://social.msdn.microsoft.com/Forums/en-US/sharepointdevpreview/thread/30a9c124-0bf5-4896-8871-412af7b795f0

Hope it saves your time.

Nishant Rana's Weblog

Everything related to Microsoft .NET Technology

Skip to content ↓