Service update, import changes from web_portal
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
using console_spo_utils.Interfaces.Services;
|
||||
using library_spo_utils.Constants;
|
||||
using library_spo_utils.Interfaces.Services;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_spo_utils.Services;
|
||||
namespace library_spo_utils.Services;
|
||||
|
||||
internal class QuotationDocLibraryService : IQuotationDocLibraryService
|
||||
{
|
||||
@@ -45,11 +46,11 @@ internal class QuotationDocLibraryService : IQuotationDocLibraryService
|
||||
|
||||
ctx.ExecuteQuery();
|
||||
|
||||
string[] fieldName = { "ID Offerta", "Fornitore", "Causale", "Autore" };
|
||||
string[] fieldName = { "PAL_Quotation_Reason", "PAL_ID_Quotation", "PAL_Quotation_Name", "PAL_Description", "PAL_Authors", "PAL_Status" };
|
||||
|
||||
foreach (var fn in fieldName)
|
||||
{
|
||||
var Fields = siteField.Fields.GetByTitle(fn);
|
||||
var Fields = siteField.Fields.GetByInternalNameOrTitle(fn);
|
||||
list.Fields.Add(Fields);
|
||||
}
|
||||
|
||||
@@ -71,7 +72,7 @@ internal class QuotationDocLibraryService : IQuotationDocLibraryService
|
||||
viewCreation.Title = libName;
|
||||
viewCreation.ViewTypeKind = ViewType.None;
|
||||
viewCreation.ColumnWidth = "350";
|
||||
viewCreation.ViewFields = new string[] { "Type", "Name", "ID Offerta", "Fornitore", "Causale", "Autore" };
|
||||
viewCreation.ViewFields = Fields.QuotationView;
|
||||
|
||||
var view = views.Add(viewCreation);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user