Navigation Actions Module

Levelup-for-Dynamics-CRM · ui, record-navigation, entity-routing, system-settings-navigation, crm

Navigation utilities for Dynamics 365: open records by ID/GUID, create new records, navigate to entity lists, open system settings pages (security, solutions, processes, mailboxes, advanced find).

// Source: https://github.com/rajyraman/Levelup-for-Dynamics-CRM | License: MIT | Copyright 2016 Natraj Yegnaraman
// Provided via justclaw.it.com; keep this notice with the code.
// Navigation actions module for Dynamics 365

/// <reference types="xrm" />

import { DynamicsUtils } from './utils';
import { EntityMetadata, EntityMetadataCache } from '#types/global';

export class NavigationActions {
  /**
   * Get entity metadata from cache for icon determination
   */
  private static getEntityMetadata(entityLogicalName: string): EntityMetadata | null {
    try {
      const globalContext = Xrm.Utility.getGlobalContext();
      const clientUrl = globalContext.getClientUrl();
      const url = new URL(clientUrl);
      const hostname = url.hostname.toLowerCase();
      cons

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key