We’ve developed some resources to help you work effectively from home during COVID-19 Click to learn more

Open document dialog when appointment completed?

Hi,

I'm doing some research related to moving a customer over from the Win client to Web client. In Win they have a script that is triggered when an appointment is completed. It'll ask the user a Yes/No question, and if they answer Yes a new document dialog is opened up so that they can create a new document.

The lack of a Yes/No dialog in web is well known, so that's not the question.

My question is about how to open the document dialog? I've tried several different approaches for the setNavigateTo URL, but they either to nothing, turn CRM blank, or end up with lots of Javascript errors.

#setLanguageLevel 3;

EventData ed = getEventData();
//ed.setMessage(ed.getInputValues().toJson());

//ed.setNavigateTo("https://crm.example.com/SuperOffice/default.aspx?document[dialogwinname=document&dialog=stop&fakeGET=true]?document_id=0");
//ed.setNavigateTo("soprotocol:document[dialogwinname=document&dialog=stop&fakeGET=true]?document_id=0");
//ed.setNavigateTo("soprotocol:document");
ed.setNavigateTo("soprotocol:document?document_id=0");

Has anyone gotten this to work?

RE: Open document dialog when appointment completed?

Hi Frode, 

This works in my SOD-environment: 

Result: