Using SOProtocol in CRMScript

In CRMScript, you can use setNavigateTo() and getNavigateTo() of the EventData object to work with SOProtocol URLs.

EventData ed = getEventData();
ed.setNavigateTo("soprotocol:sale.document?document_id=0");
🛈 Note
The NSViewStateAgent contains information about which archive tab is currently open. This can be useful to construct the correct soprotocol and refresh the correct parts.