Posts

Showing posts from May, 2018

Dynamically adding row to table and selected entity related attributes to table dynamically using html in mscrm

<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head></head> <body>          <meta charset="utf-8">     <title>Sample page</title>     <script src="../../ClientGlobalContext.js.aspx" type="text/javascript"></script>     <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>     <script src="http://managed.apy.com:5555/apyuthorities/WebResources/mtcsv_/Scripts/Jquery.1.8.2.min.js"></script>     <script src="http://managed.apy.com:5555/apyuthorities/WebResources/apy_Sdknew.js" type="text/javascript"></script>     <!--<script src="Scripts/SDK.MetaData.js" type="text/javascript"></script>-->     <script src="http://managed.apy.com:5555/apy/WebResources/apy_XrmSvcToolkit.js" type="text/javascript"...

Retrieve entity related attribute by SDK.Metadata.RetrieveEntity using javascript in mscrm

   function addColumn(entityName) {                      if (entityName != null && entityName != undefined && entityName != "") {                 SDK.Metadata.RetrieveEntity(SDK.Metadata.EntityFilters.Attributes, entityName, null, false, function (entityMetadata) { successRetrieveEntityData(entityName, entityMetadata); }, errorRetrieveEntity);             }         }         function successRetrieveEntityData(logicalName, entityMetadata) {             attributecount = null;             attributes = [];             attributecount = entityMetadata.Attributes.length;             entityMetadata.Attributes.sort(function (a, b) {             ...

create a record with plugin including with all fields in mscrm

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xrm.Sdk; namespace CreateBookingMovementFromEnquiry {     public class CreateBookingMovement : IPlugin     {         public void Execute(IServiceProvider serviceProvider)         {             ITracingService trace = (ITracingService)serviceProvider.GetService(typeof(ITracingService));             IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));             IOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));             IOrganizationService service = serviceFactory.CreateOrganizationService(new Guid?(context....