Reg: readexcelsheet function

Hi all,

I am getting data from excel sheet (3 Columns), I just need to validate 1 column in that excel sheet could you tell me how can i get the 1st column seperatly by using readexcelsheet() function  

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    This is a good use case for a!forEach - since without looping over the returned data, it's difficult to index into a particular column (since as you noted in a previous reply, the first attempt to index automatically narrows the result down to that row).

    a!localVariables(
    
      local!excelData: readexcelsheet(
        ...
      ).result,
      
      local!column1data: a!forEach(
        local!excelData,
        
        index(fv!item.values, 1, null()) /* replace "1" with any other column number you want to grab */
      ),
      
      local!column1data
    )

Reply
  • 0
    Certified Lead Developer

    This is a good use case for a!forEach - since without looping over the returned data, it's difficult to index into a particular column (since as you noted in a previous reply, the first attempt to index automatically narrows the result down to that row).

    a!localVariables(
    
      local!excelData: readexcelsheet(
        ...
      ).result,
      
      local!column1data: a!forEach(
        local!excelData,
        
        index(fv!item.values, 1, null()) /* replace "1" with any other column number you want to grab */
      ),
      
      local!column1data
    )

Children