schedule-api/C#/SDK-Sample/ScheduleAPIHelpers.cs
/// <summary>
/// Calls the action to create a new project
/// </summary>
/// <param name="project">Project</param>
/// <returns>project Id</returns>
Calls the action to create a new project
Calls the action to create a new project
public Guid CallCreateProjectAction(Entity project)
        {
            OrganizationRequest createProjectRequest = new OrganizationRequest("msdyn_CreateProjectV1");
            createProjectRequest["Project"] = project;
            OrganizationResponse response = organizationService.Execute(createProjectRequest);
            var projectId = Guid.Parse((string)response["ProjectId"]);
            return projectId;
        }
public Guid CallCreateProjectAction ( Entity project ) { OrganizationRequest createProjectRequest = new OrganizationRequest ( " " ) ; createProjectRequest [ " " ] = project ; OrganizationResponse response = organizationService . Execute ( createProjectRequest ) ; var projectId = Guid . Parse ( ( string ) response [ " " ] ) ; return projectId ; }
Calls the action to create a new project
Calls the action to create a new project
None
project
Entity
None