Skip to content

Instantly share code, notes, and snippets.

View maestrotex's full-sized avatar

Sanjay Prakash Pradhan maestrotex

View GitHub Profile
function CreateRelatedRecord()
{
var companyname = prompt("Enter Company Name");
var primarycontactfirstname = prompt("Enter Primary Contact First Name");
var primarycontactlastname = prompt("Enter Primary Contact Last Name");
var opportunityTopic = prompt("Enter Opportnity Topic");
// define data to create primary and related table records
var data =
{
"name": companyname,
{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "TextBlock",
            "text": "Picnic Spot Selection",
            "id": "Title",
            "spacing": "Medium",
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Query;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ManyManyRelPlugin
{
using Microsoft.Xrm.Sdk;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ManyManyRelPlugin
{
public class manymany : IPlugin
<!DOCTYPE html>
<html>
<head>
<title>Home Page - D365 Connect ADAL</title>
<meta charset="utf-8" />
<script src="https://secure.aadcdn.microsoftonline-p.com/lib/1.0.17/js/adal.min.js"></script>
<script type="text/javascript">
"use strict";
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Query;
using System;
namespace ConsoleD365NewMFAEnabled
{
class Program
{
static void Main(string[] args)
{
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Tooling.Connector;
using System;
namespace ConsoleD365NewMFAEnabled
{
public class Connect
{
public static IOrganizationService GetOrganizationServiceClientSecret(string clientId, string clientSecret, string organizationUri)
{
using Microsoft.Xrm.Sdk;
using System;
namespace ConsoleD365NewMFAEnabled
{
class Program
{
static void Main(string[] args)
{
IOrganizationService orgService;
using System;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Tooling.Connector;
namespace ConsoleD365NewMFAEnabled
{
class Program
{
static void Main(string[] args)
{
IOrganizationService orgService;
using System;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Tooling.Connector;
namespace ConsoleD365NewMFAEnabled
{
class Program
{
static void Main(string[] args)
{
IOrganizationService orgService;