Dynamics CRM Redirect to Entity Page

2 Comments
BEFORE WE START, I NEED YOUR HELP.
 

I AM SPENDING MORE TIME THESE DAYS CREATING YOUTUBE VIDEOS TO HELP PEOPLE LEARN THE MICROSOFT POWER PLATFORM.

IF YOU WOULD LIKE TO SEE HOW I BUILD APPS, OR FIND SOMETHING USEFUL READING MY BLOG, I WOULD REALLY APPRECIATE YOU SUBSCRIBING TO MY YOUTUBE CHANNEL.

THANK YOU, AND LET'S KEEP LEARNING TOGETHER.

CARL

https://www.youtube.com/carldesouza

 

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}" );

 

ABOUT CARL DE SOUZA

Carl de Souza is a developer and architect focusing on Microsoft Dynamics 365, Power BI, Azure, and AI.

carldesouza.comLinkedIn Twitter | YouTube

 

2 Responses to Dynamics CRM Redirect to Entity Page

  1. 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.

  2. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *