> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-worktree-351-fix-webapi-escaped-anchors.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Using SOProtocol in CRMScript

> Using SOProtocol in CRMScript

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

```crmscript theme={null}
EventData ed = getEventData();
ed.setNavigateTo("soprotocol:sale.document?document_id=0");
```

<Note>
  The [NSViewStateAgent][3] contains information about which archive tab is currently open. This can be useful to construct the correct soprotocol and refresh the correct parts.
</Note>

[1]: /en/automation/crmscript/reference/CRMScript.Native.EventData

[2]: ./index

[3]: /en/automation/crmscript/reference/CRMScript.NetServer.NSViewStateAgent
