dynamicsnode
Version:
Create simple scripts to interact with Dynamics CRM using Node.js
11 lines (10 loc) • 685 B
TypeScript
import { CRMClient } from './CRMClient';
import { EntityMetadata, AttributeMetadata } from './CRMDataTypes';
export declare class MetadataUtil {
private static _metadataCache;
static getEntityMetadataFromCrm(crm: CRMClient, entityName: string): EntityMetadata;
static getEntityMetadata(crm: CRMClient, entityName: string): EntityMetadata;
static getAttributeMetadata(crm: CRMClient, entityName: string, attributeName: string): AttributeMetadata;
/** Gets the optionset number value from its label value. If not found returns null */
static getOptionsetValue(crm: CRMClient, entityName: string, attributeName: string, optionsetText: string): number;
}