Forum Discussion

MichaelHutchens's avatar
4 years ago
Solved

Custom columns in a SharePoint Page Library

Hi folks, I'm hoping someone might be able to assist. I'm attempting to connect to a SharePoint Page Library using Online Services. The Page Library table (lets call that table 'Pages' has a custom c...
  • AlexisOlson's avatar
    AlexisOlson
    4 years ago

    Either do them both in the same step or else change the reference to the prior step. Your new step is referencing the step before the first remove nulls step.

     

    Here's both in the same step:

    let
        Source = SharePoint.Tables("https:URL_GOES_HERE", [Implementation="2.0", ViewMode="All"]),
        #"793529eb-48c3-4fad-a005-7a4aa0a716ad" = Source{[Id="793529eb-48c3-4fad-a005-7a4aa0a716ad"]}[Items],
        #"Removed Other Columns" = Table.SelectColumns(#"793529eb-48c3-4fad-a005-7a4aa0a716ad",{"Name", "Author Byline"}),
    	#"Fix Non List Values" = Table.TransformColumns( #"Removed Other Columns", {{"Author Byline", each if Value.Is(_, type list) then _ else null}, {"Checked Out To", each if Value.Is(_, type list) then _ else null}} )
    in
        #"Fix Non List Values"