Browsing all articles in Microsoft CRM

CRM 2011 Set State to a Record

Posted Posted by cllamas in CRM 2011, Javascripts     Comments No comments
Nov
30

Código Jscript para Cambiar Estado a un Registro usando Jscript para CRM 2011:

   1: function SetState(EntityName,Id,State,Status)

   2: {

   3:     var authenticationHeader = GenerateAuthenticationHeader();

   4:     // Prepare the SOAP message. 

   5:     var xml = "<?xml version='1.0' encoding='utf-8'?>" +

   6:  

   7:     "<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'" +

   8:     " xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>" +

   9:     authenticationHeader +

  10:     "<soap:Body>" +

  11:     "<Execute xmlns='http://schemas.microsoft.com/crm/2007/WebServices'>" +

  12:     "<Request xsi:type='SetStateDynamicEntityRequest'>" +

  13:     "<Entity>"+

  14:     "<Id xmlns='http://schemas.microsoft.com/crm/2006/CoreTypes'>"+Id+"</Id>" +

  15:     "<Name xmlns='http://schemas.microsoft.com/crm/2006/CoreTypes'>"+EntityName+"</Name>" +

  16:     "</Entity>" +

  17:     "<State>"+State+"</State>" +

  18:     "<Status>"+Status+"</Status>" +

  19:     "</Request>" +

  20:     "</Execute>" +

  21:     "</soap:Body>" +

  22:     "</soap:Envelope>";

  23:     

  24:     // Prepare the xmlHttpObject and send the request. 

  25:     var xHReq = new ActiveXObject("Msxml2.XMLHTTP"); 

  26:     xHReq.Open("POST", "/mscrmservices/2007/CrmService.asmx", false); 

  27:     xHReq.setRequestHeader("SOAPAction","http://schemas.microsoft.com/crm/2007/WebServices/Execute"); 

  28:     xHReq.setRequestHeader("Content-Type", "text/xml; charset=utf-8"); 

  29:     xHReq.setRequestHeader("Content-Length", xml.length); 

  30:     xHReq.send(xml); 

  31:     // Capture the result. 

  32:     var resultXml = xHReq.responseXML;

  33:     

  34:     // Check for errors. 

  35:     var errorCount = resultXml.selectNodes('//error').length;

  36:     if (errorCount != 0) 

  37:     { 

  38:     var msg = resultXml.selectSingleNode('//description').nodeTypedValue; 

  39:     alert(msg); 

  40:     }

  41: }

Informes de SQL Reporting Services para CRM Online

Posted Posted by cllamas in CRM Online, Microsoft CRM, Reportes     Comments No comments
Aug
30

Cuando se intenta subir un informe realizado en CRM 2011 On Premise usando conexión a Base de Datos SQL a CRM Online aparece el siguiente error ‘Origen de datos no válido’:

image

read more

SQL Server setup media does not support the language of the OS

Posted Posted by cllamas in Otras Tecnologías, Trucos     Comments No comments
Aug
2

Cuando se inicia programa de instalación de SQL 2008 R2 aparece siguiente mensaje de error:

SQL Server setup media does not support the language of the OS or does not have ENU localized files. Use the matching language-specific SQL Server media or change the OS locale through control panel.

read more

CRM 2011–Graficos y Dashboards Personalizados

Posted Posted by cllamas in CRM 2011, Microsoft CRM, Trucos     Comments No comments
Jul
20

La versión 2011 de Microsoft Dynamics permite la creación facil de graficos y dashboards (paneles). Sin embargo no se pueden cambiar los colores de los graficos, ni habilitar apariencia 3D, ni agregar más de una variable en el eje horizontal, entre otros.

image

read more

Metadata Browser para Dynamics CRM 2011

Posted Posted by flopez in Add - Ons, CRM 2011, Microsoft CRM, Solución Problemas, Trucos     Comments No comments
Jul
1

En Dynamics CRM 4.0 existían varias herramientas que pemiten ver la estructura de campos de cada una de las entidades.

Para Dynamics CRM 2011, Rhett Clinton diseño esta solución en Silverlight que permite ver todas las entidades, los campos de cada una de ellas y además permite exportarlo a Excel.

DESCARGAR EL CRM 2011 METADATA BROWSER

El Archivo es un *.Zip que se instala como una solución en el CRM.  Una vez instalada la solución, va a encontrar en Configuración > Personalización.  una nueva opción que es este Navegador de los Metadatos.  En el caso nuestro el Icono aparece como Desconocido1322

Importante:  Si tiene IFD habilitado debe ingresar con la dirección Https del IFD. Ej:  https://miorg.crmcol.com:444

image

Microsoft Dynamics CRM 4.0 Update Rollups

Posted Posted by cllamas in Microsoft CRM, Rollup     Comments No comments
May
25

Url de descarga de Paquetes de Actualizaciones de Microsoft Dynamics CRM 4.0:

Nombre

Url

Rollup 1

http://www.microsoft.com/downloads/en/details.aspx?FamilyId=57C6267B-3B13-49DD-BFED-3CC83633AEA7&displaylang=en

Rollup 2

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=AA671769-61E9-45C4-919F-C88199AA4241

Rollup 3

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=05453FA4-9551-4A88-9852-634A9AD0E140

Rollup 4

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=0DDF8E83-5D9C-4FE7-9AE6-F2713A024071

Rollup 5

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=5101D801-976B-4C11-BDFC-000B970EF4A3

Rollup 6

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=79F90982-C039-41C2-AF8E-3119ECF27790

Rollup 7

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=A4893988-7804-4E23-AB58-740441CC696E

Rollup 8

http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=c53b2916-6b93-4092-bdd3-a394c96ca000

Rollup 9

http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=5869f2b3-d1a0-4f71-8be3-fde6e8053a2e

Rollup 10

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=5DA4D352-1D3F-4426-9C17-B256C30AFDB9

Rollup 11

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=F84F2BFB-393D-4B90-BF1B-300A82EC6083

Rollup 12

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=A80147F8-130E-492D-93D3-E16E6B2E2FA1

Rollup 13

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=406E6247-873B-4DB0-8A25-3F041B066844

Rollup 14

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=0FDE5456-05A5-4407-81B3-0EAA928C8CC3

Rollup 15

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=A43147C9-E87E-41B3-BF46-AC1244A0475C

Rollup 16

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=5AD652F9-D81D-4F12-B9CA-883816806634

Rollup 17

http://www.microsoft.com/download/en/details.aspx?id=14458

Rollup 18

http://www.microsoft.com/download/en/details.aspx?id=26662

 

Nuevo_Logo

CRM 2011 – Jscripts sobre Campos y elementos del Formulario

Posted Posted by cllamas in CRM 2011, Javascripts, Trucos     Comments No comments
May
3

 

Con el cambio de versión de Microsoft Dynamics CRM 4.0 a CRM 2011, se presentaron cambios en la interfaz grafica lo cual significa que hay cambios en los Jscrips para usar nuevas convenciones y usar las nuevas capacidades de CRM 2011.

CRM 4.0 hace uso del objeto crmForm para proveer acceso a los campos del formulario. En la versión 2011 este objeto está es desuso. Algunos Scripts usando crmForm van a seguir siendo soportados por asuntos de compatibilidad, pero para usar las correctamente CRM 2011 se deben cambiar los Scripts de crmForm a Xrm.Page:

SELECCIONAR VALOR DE UN CAMPO

Xrm.Page.getAttribute(“attribute”).getValue();

ESTABLECER VALOR DE UN CAMPO

Xrm.Page.getAttribute(“attribute”).setValue(“Value”);

ESTABLECER VALOR DE UN PICKLIST EN OPCION 1000000000

Xrm.Page.getAttribute(“attribute”).setValue(100000000);

ESTABLECER VALOR DE UN CAMPO EN NULO

Xrm.Page.getAttribute(“attribute”).setValue(null);

ESTABLECER NIVEL DE REQUERIMIENTO DE UN CAMPO

Xrm.Page.getAttribute(“attribute”).setRequiredLevel(“required”);

Xrm.Page.getAttribute(“attribute”).setRequiredLevel(“recommended”);

Xrm.Page.getAttribute(“attribute”).setRequiredLevel(“none”);

DESHABILITAR / HABILITAR CAMPOS

Xrm.Page.getControl(attribute”).setDisabled(true);

Xrm.Page.getControl(“attribute”).setDisabled(false);

MOSTRAR / OCULTAR CAMPOS

Xrm.Page.getControl (“attribute”).setVisible(true);

Xrm.Page.getControl (“attribute”).setVisible(false);

SET FOCUS

Xrm.Page.getControl(“attribute”).setFocus(true);

ESCONDER / MOSTRAR TAB

Xrm.Page.ui.tabs.get(1).setVisible(true);

Xrm.Page.ui.tabs.get(1).setVisible(false);

ESTABLECER EL VALOR EN UN CAMPO BOOLEAN

Xrm.Page.getAttribute(“attribute”).setValue(true);

Xrm.Page.getAttribute(“attribute”).setValue(false);

ID DE LA ENTIDAD DEL FORMULARIO ACTUAL

Xrm.Page.data.entity.getId();

SALVAR EL FORMULARIO ACTUAL

Xrm.Page.data.entity.save();

ACCIÓN FireOnChange DE UN CAMPO EN OTRO

Xrm.Page.getAttribute(“attribute”).fireOnChange();

ID O EL CONTENIDO DEL CAMPO LOOKUP (BUSQUEDA)

Xrm.Page.getAttribute(“attribute”).getValue()[0].id;

Xrm.Page.getAttribute(“attribute”).getValue()[0].name;

DETENER EL EVENTO GUARDAR (SAVE) DEL FORMULARIO

event.returnValue = false;

DEVUELVE EL GUID DEL ROL DE SEGURIDAD DEL USUARIO CRM

Xrm.page.context.getUserRoles();


Nuevo_Logo

CRM 4.0 Deletion Service no elimina registros

Posted Posted by cllamas in Microsoft CRM, Solución Problemas     Comments No comments
Mar
18

Cuando se elimina un registro en Microsoft Dynamics CRM 4.0, el registro no se elimina directamente de la Base de Datos, sino que este se marca para eliminación (Se coloca el campo ‘DeletionStateCode’ en 2) y un servicio que por defecto se ejecuta cada 24 horas llamado ‘Deletion Services’ ejecuta la eliminación del registro de la Tabla de la Base de Datos.

Cuando los registros marcados ‘DeletionStateCode’ = 2 no se eliminan, se debe ejecutar el siguiente query sobre la base de Datos ‘MSCRM_CONFIG’:

select * from ScaleGroupOrganizationMaintenanceJobs 
where OrganizationId in (select Id from Organization where DatabaseName = ‘[Org_DataBaseName]‘) and OperationType = 14

En el resultado del Query, la columna LastResultCode, muestra el resultado de la ejecución, si es igual a 0, el resultado de la última ejecución del Deletion Service fue exitosa, cualquier otro valor que aparezca significa que se presentaron errores.

En la columna LastRunTime, muestra la última fecha en la que se ejecuto por última vez el Deletion Service.

read more

No se puede configurar E-mail Router despues de configurar IFD

Posted Posted by cllamas in Microsoft CRM, Otras Tecnologías, Solución Problemas     Comments No comments
Mar
18

Despues de configurar IFD para Microsoft Dynamics CRM 4.0, no se puede configurar el componente de E-mail Router de Microsoft Dynamics CRM 4.0, aparece el siguiente mensaje:

The E-mail Router Configuration Manager was unable to retrieve user and queue information from Microsoft Dynamics CRM server. This may indicate that the Microsoft Dynamics CRM server is busy. Verify that URL ‘http://<ServerName>:<port>/<OrgName>’ is correct. Additionally, this problem can occur if specified access credentials are insufficient. To try again, click Load Data. (The request failed with HTTP status 401: Unauthorized.)

read more

CRM 2011 – Ocultar la cinta ‘Get Started’ en todos los Formularios

Posted Posted by fdaza in CRM 2011, Microsoft CRM, Trucos     Comments No comments
Feb
25

Cuando ingresa por primera vez a CRM 2011 la pantalla principal muestra una cinta de opciones ‘Get Started’ en todos los formularios.

Oculte la cinta con el menú de opciones, quite la marca ‘Show Get Started panes on all lists’ , luego OK. Desaparecerá la cinta de opciones Get Started:

Nuevo_Logo

Archivo

Categorias

Ingrese su Correo para insribirse en nuestro blog y lo notificaremos cuando tengamos nuevas entradas