Exemplo n.º 1
0
        /// <summary>
        /// Set the request information
        /// </summary>
        /// <param name="template">Request template</param>
        /// <returns>Request information</returns>
        private APIRequestProvWeb SetValue(APIRequestProvWeb template)
        {
            var requestInfo = template;

            #region Required

            //Request Summary
            requestInfo.RequestSummary = "Create Site Sample";
            //Parent Site Collection or Site URL
            requestInfo.ParentSiteUrl = "https://m365x542077.sharepoint.com/sites/First";
            //URL
            requestInfo.Url = "Sample";
            //Title
            requestInfo.WebTitle = "Sample";
            //Primary Contact
            requestInfo.PrimaryContact = "*****@*****.**";
            //Secondary Contact
            requestInfo.SecondaryContact = "*****@*****.**";

            #endregion

            #region Not Required

            //Request Description
            requestInfo.Description = "Sample";
            //Site Description
            requestInfo.WebDescription = "Sample";

            this.SetMetadataValue(requestInfo);

            #endregion

            return(requestInfo);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Set the request information
        /// </summary>
        /// <param name="template">Request template</param>
        /// <returns>Request information</returns>
        private APIRequestProvWeb SetValue(APIRequestProvWeb template)
        {
            var requestInfo = template;

            #region Required

            //Request Summary
            requestInfo.RequestSummary = "Create Site Sample";
            //Parent Site Collection or Site URL
            requestInfo.ParentSiteUrl = "";
            //URL
            requestInfo.Url = "Sample";
            //Title
            requestInfo.WebTitle = "Sample";
            //Primary Contact
            requestInfo.PrimaryContact = "";
            //Secondary Contact
            requestInfo.SecondaryContact = "";

            #endregion

            #region Not Required

            //Request Description
            requestInfo.Description = "Sample";
            //Site Description
            requestInfo.WebDescription = "Sample";

            this.SetMetadataValue(requestInfo);

            #endregion

            return(requestInfo);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Save and submit Create Site request
        /// </summary>
        /// <param name="requestInfo">Request information</param>
        /// <returns>The result of submitting request</returns>
        private Boolean SaveAndSubmit(APIRequestProvWeb requestInfo)
        {
            var requestId = this.requestService.Save(requestInfo);

            return(this.requestService.Submit(requestId));
        }