Import excel

Hello,

I am new in appian and  I need to import a excel and save in local variable, after that I need to validate the content of the file (number of columns, etc),  I don't how to start.

Could recommend me the function to do it,  

Could you help me , please?

Best regards,

  Discussion posts and replies are publicly visible

Parents Reply Children
  • Thank for this information

    I am reading,

    I have this code

    primaryButtons: {
    a!buttonWidget(
    label: "Submit",
    submit: true,
    style: "PRIMARY",
    saveInto: a!save(readexcelsheetpaging(
    excelDocument:"CargaMasiva.xlsx",
    sheetNumber:0,
    pagingInfo:a!pagingInfo(1,50),
    ),
    ri!contenido)

    )
    }

    And I have this error:

    The passed parameter(s) are of the wrong type. Received the type com.appiancorp.common.xml.JaxbConversionException: JAXB was not able to produce a value for typed value TypedValue[it=3,v=CargaMasiva.xlsx] as java class java.lang.Long.

    Could you help me, please?

    BR

  • 0
    Certified Senior Developer
    in reply to anad0004

    To Achieve this , you would need to design a process model,

    1.Design a ui to upload the excel and get the docId and configure in start form ,

    2.create an expression rule and write your logic what  you want to do

    3. use above expression rule in a script task and based on expression rule output  move forward with your process.

    and use that function something like below

    readexcelsheetpaging(
        excelDocument:ri!docId,
        sheetNumber:0,
        pagingInfo:a!pagingInfo(
          startIndex: 2,
          batchSize:3
        )
      )

    change paging configuration based on your data and make sure not to use "-1" here as it will give you null data.