locked
parameterized view RRS feed

  • Question

  • Let's say your Accounts own (custom entity) Vehicles.  Obviously you have a list view of the Vehicles and you have a related view of Vehicles on each account.  What's the URL of that related view?  How can I call the list of Vehicles for a specific Account?
    Friday, April 16, 2010 4:54 PM

Answers

  • You can acheive this with the help of tabSet property.

    You URL for opening the account form with Vehicles navigation as default would be like

    http://<Server Name>>/<<Orgination Name>>/sfa/accts/areas.aspx?oId={<<GUID of the account record>>}&oType=1&security=852023&tabSet=X

    e.g http://crm/contoso/sfa/accts/areas.aspx?oId={F2B19A1A-7BBF-DC11-8DC0-0007E931E44A}&oType=1&security=852023&tabSet=Account_New_Vehicles

    Where X is the 1:N relation name beetween Accounts and Vehicles.

    You can obtain this by.
    1. Navigate to Settings --> Customization --> Customiza Entities --> Account --> 1:N Relashionship
    2. Open for relation with the Vehicle entity i.e related entity is Vechicle.
    3. Copy the relationship definition name. e.g Account_New_Vehicles

    • Marked as answer by mardukes Monday, April 19, 2010 9:26 PM
    Monday, April 19, 2010 5:55 AM

All replies

  • ...or

    Can I open the Account form focused on the Vehicles nav-subarea rather than the information subarea?

    Friday, April 16, 2010 5:31 PM
  • The easiest way to know about URLs are:

    1/ Using a tool like fiddler that tells you all url called when you use your browser

    2/ Edit the file <CrmWebRoot>\_static\_Common\scripts\global.js to comment the content of the function OnContextMenu that blocks the mouse right click. When you have this possibility to make a right click, you can select properties for the frame and know which url is called. Then, when you have all you need, remove the comments you put on the global.js file.


    My blog : http://mscrmtools.blogspot.com

    All my tools on my new dedicated site: MSCRMTools Repository
    Friday, April 16, 2010 5:32 PM
    Moderator
  • You can acheive this with the help of tabSet property.

    You URL for opening the account form with Vehicles navigation as default would be like

    http://<Server Name>>/<<Orgination Name>>/sfa/accts/areas.aspx?oId={<<GUID of the account record>>}&oType=1&security=852023&tabSet=X

    e.g http://crm/contoso/sfa/accts/areas.aspx?oId={F2B19A1A-7BBF-DC11-8DC0-0007E931E44A}&oType=1&security=852023&tabSet=Account_New_Vehicles

    Where X is the 1:N relation name beetween Accounts and Vehicles.

    You can obtain this by.
    1. Navigate to Settings --> Customization --> Customiza Entities --> Account --> 1:N Relashionship
    2. Open for relation with the Vehicle entity i.e related entity is Vechicle.
    3. Copy the relationship definition name. e.g Account_New_Vehicles

    • Marked as answer by mardukes Monday, April 19, 2010 9:26 PM
    Monday, April 19, 2010 5:55 AM
  • I tried this (and others):

    ...com/sfa/accts/edit.aspx?id={6F464449-C254-DD11-83C5-00188B2E03D9}&tabSet=account_contacts# (parent account?)

    and got this unhandled exception:

    [InvalidOperationException: CRM Parameter Filter - Invalid parameter 'tabSet=account_contacts' in Request.QueryString on page /sfa/accts/edit.aspx
    The raw request was 'GET /sfa/accts/edit.aspx?id={6F464449-C254-DD11-83C5-00188B2E03D9}&tabSet=account_contacts' called from .]
       at Microsoft.Crm.Application.ParameterFilter.ValidateParameter(Page page, ArrayList parameterCollection, String key, String value, String collectionName, EntityType pageEntityType)
       at Microsoft.Crm.Application.ParameterFilter.ValidateParameters(Page page, EntityType pageEntityType, Boolean alwaysEnableParameterChecking)
       at Microsoft.Crm.Application.Controls.AppPage.ValidatePageParameters()
       at Microsoft.Crm.Application.Controls.AppPage.OnInit(EventArgs e)
       at System.Web.UI.Control.InitRecursive(Control namingContainer)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    In fact it made the same complaint about oType as well.

     

    OOPS! I didn't read the whole thing.

    Monday, April 19, 2010 9:20 PM
  • This just gives me the list rather than the account turned to the list which is what I originally asked for.  So, cool!
    Monday, April 19, 2010 9:26 PM