Export Data Store Entity to Excel Smart Service

Certified Senior Developer

Hi All,

I'm using for the first time the Export Data Store Entity to Excel Smart Service to add data to an existing excel template (saved as a doc in appian) (Exporting data to a formatted Excel sheet).

Once I add the data to the excel it seems it adds it in the same row and erases anything on the same row that was there before, I'm trying to add the new data only in one column, different rows instead in one whole row.

Does someone know if this is possible or how I should be configuring the parameters.

customCellPositions

List of Text String

(Optional) Array of cell positions where custom cell values should be added.

customCellValues

List of Text String

(Optional) Array of values to be added on the specified custom cell position.

Or if you could recommend a different smart service to achieve this?

Thanks in advance

  Discussion posts and replies are publicly visible

Parents
  • +1
    Certified Lead Developer

    My suggestion is to use a different smart service, one that accepts a Base Template, because even after years of complaining, they have not seen fit to update the Export DSE to Excel smart service with this most basic of functionalities.

    I used to recommend installing the Excel Tools plug-in and using one of the (deprecated-but-still-working-perfectly-fine) original smart services, usually Export CDT to Excel.  However there is now a more recent plug-in, "JSON to Excel", which also takes a base template, and (unlike "Export CDT...") doesn't even require you to use a specific CDT to handle your export (meaning you're free to do data transforms as you wish prior to feeding the JSON array to the smart service).

  • 0
    Certified Senior Developer
    in reply to Mike Schmitt

    Thank you for this suggestion Mike - I currently have the excel tools plug in installed, if I decided to go this route could you recommend what I should be using instead?
    Installing a plug in requires a lot of higher approvals and it might take some time until I get installed for the "JSON to Excel" you mentioned.

    Thanks again

  • 0
    Certified Lead Developer
    in reply to Maria

    Then definitely try out the "CDT to Excel" node - it's marked as "deprecated" but as i mentioned, has continued to work anyway.  It works perfectly with pre-formatted templates.

  • 0
    Certified Senior Developer
    in reply to Mike Schmitt

    In this case if for example, I need to place the process variable values in some specific cells in the excel template. How would I do that? 

    Lets say I have one cdt, with 3 fields

    cell A2: value of cdt.field1

    cell B6: value of cdt.field2

    cell C20: value of cdt.field3

  • +1
    Certified Lead Developer
    in reply to Maria

    CDT to Excel is designed specifically to accept an array of CDT and output it to a series of rows of Excel data in a contiguous manner.  That's the main usage anyway.  But it does (also) let you populate some individual cells with arbitrary values, by passing in an array of cell positions and their values (the values can be anything expressionable, the CDT you use to populate the main part is irrelevant to this). 

    If you're *only* trying to write 3 arbitrary cell values to an excel sheet, then I must admit I'm a little confused why you're even bothering with an Excel doc.  The use case for the "manual cell value" thing is usually to populate some hardcoded supporting data that gives some additional info about the report shown on the rest of the sheet.

Reply
  • +1
    Certified Lead Developer
    in reply to Maria

    CDT to Excel is designed specifically to accept an array of CDT and output it to a series of rows of Excel data in a contiguous manner.  That's the main usage anyway.  But it does (also) let you populate some individual cells with arbitrary values, by passing in an array of cell positions and their values (the values can be anything expressionable, the CDT you use to populate the main part is irrelevant to this). 

    If you're *only* trying to write 3 arbitrary cell values to an excel sheet, then I must admit I'm a little confused why you're even bothering with an Excel doc.  The use case for the "manual cell value" thing is usually to populate some hardcoded supporting data that gives some additional info about the report shown on the rest of the sheet.

Children