To redirect a Dynamics CRM page to an entity page, you can use:
Xrm.Utility.openEntityForm(name,id,parameters,windowOptions)For example, this would redirect the user to the lead page if you included this in JavaScript in CRM:
Xrm.Utility.openEntityForm( "lead" );If we add the ID parameter, it will open the actual record, e.g.
Xrm.Utility.openEntityForm( "account", "{AFF47933-3FD8-E611-80F0-C4346BAC8930}" );

Keep learning. Keep building.
Explore AI, agents & Microsoft technology.
I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.
Subscribe on YouTube →Carl de Souza Enterprise Architect at Microsoft · AI Technology Expert

How do you get the Record ID if the you are creating this record through a quick create form? I want to be able to “quick create” a lead and when I hit save, I get redirected to that newly created lead.
Always great and easy to read posts Carl. I have a requirement to redirect to a new contract record after it was created via a workflow from opportunity entity. However, I am having serious issues accomplishing this via js. Any recommendations? Workflow is simple: create new contract when opportunity status = closed. I’ve ran the redirect code onSave on the contract as the new record is saved once created on workflow, but now that I think of it the behavior I am looking for won’t happen.