title: crm 2011 get the default view id
body: <p>Is there a way in CRM 2011 to get the default view id for a custom entity?  Using JavaScript I want to dynamically generate a HREF but I don't want to hard code any part of the URL.  I know how to get the Server URL and Org name in the link below but not this portion "etc=2&amp;extraqs=%3f_gridType%3d2%26etc%3d2%26id%3d%257b"</p>
  
  <pre><code>http://dev:5555/MyOrg/main.aspx?etc=2&amp;extraqs=%3f_gridType%3d2%26etc%3d2%26id%3d%257b
  </code></pre>