Esempio n. 1
0
        private async System.Threading.Tasks.Task create__task_entity()
        {
            crm_ddl_namespace.Task task = new crm_ddl_namespace.Task();
            task.Subject     = (string)con["name"];
            task.Description = "nazi nigger created this task";

            taskss = service.Create(task);
        }
Esempio n. 2
0
        private async System.Threading.Tasks.Task assign_activities()
        {
            Email email_ = new Email();

            crm_ddl_namespace.Task task_  = new crm_ddl_namespace.Task();
            AssignRequest          assign = new AssignRequest
            {
                Assignee = new EntityReference(SystemUser.EntityLogicalName, salesperson),
                Target   = new EntityReference(task_.LogicalName, taskss)
            };

            service.Execute(assign);

            AssignRequest assign = new AssignRequest
            {
                Assignee = new EntityReference(SystemUser.EntityLogicalName, salesperson),
                Target   = new EntityReference(email_.LogicalName, emailid_)
            };

            service.Execute(assign);
        }