I created a custom button in my Phone Call entity and want to call a dialog when that button is clicked. That button would basically prompt the user to create a follow-Up activity if yes is chosen. All the steps are added in the dialog. But my script seems to run into an error whenever I click it. it opens a new page and says page cannot be found - this is so weird since I was expecting a pop-up. This is the code:
function new_FollowUp(dialogId, entityName, objectId)
{
var url = Xrm.Page.context.getClientUrl() +
7bAD6FCD31-A067-4F43-B4D2-6E8B2A6CBECB +
dialogId + phonecall +
entityName + c24ed9f9-2186-e911-a97d-000d3af45d23 +
objectId;
window.open(url);
}
Can someone please help me with the right code?
Thank you.