There are two ways to read URL-parameters in Silverlight. Today I am going to show you one, and the easiest according to me.
In CRM there is a setting that you can “pass-param”. If you are on a CRM Form you get keys like “typename” and “id”.
Complete list (CRM 2011):
|typename||Entity Name||Name of the entity|
|type||Entity Type Code||Integer that uniquely identifies the entity in a specific organization|
|id||Object GUID||GUID that represents a record.|
|orgname||Organization Name||Unique name of the organization.|
|userlcid||User Language Code||Language code identifier that is being used by the current user.|
|orglcid||Organization Language Code||Language code identifier that represents the base language for the organization.|
If you have the Silverlight in the Sitemap you don’t get (of course), typename, type and id.
You can read them in your Silverlight: