I want to open Entity records list page with specific view on button click in Unified User Interface app in MS Dynamics CRM 365 v9.0. For example, Contacts
list page and Active Contacts
view.
Following URL works find in Web
window.open(serverUrl + "/main.aspx?etn=contact&pagetype=entitylist&viewid={"61A3C426-36CC-43EF-8549-E6A525F2FC08"}&viewtype=1039&navbar=off&cmdbar=true");
I have tried with this URL too but it doesn't work in App
window.open(serverUrl + "/main.aspx?appid={yourAppId}?etn=contact&pagetype=entitylist&viewid={"61A3C426-36CC-43EF-8549-E6A525F2FC08"}&viewtype=1039&navbar=off&cmdbar=true");
You can use Below Url structure:
"viewtype" values are: 1039: For system View. 4230: For Personal View
For more info please see this page.