how to create a new file of .dat type to fetch and store database tables in a process model.

I need to create new .dat file by fetching the data stored in database by running a process model. I looked into the smart services but couldn't find anything helpful. How can we create a .dat file with all the details?

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Senior Developer
    in reply to muskans400426

    1. Start by fetching the required data using a record or data store entity. Then, structure the data as needed. For example:

    2. Utilize the "Text Doc from Template" smart service. Pass a template document containing a single key, such as "###DATA###." To create a .dat file, follow these steps:

    1. On your system, create a new text file.
    2. Insert ###DATA### into the file.
    3. Save the file and then change its extension to .dat.

  • 0
    Certified Senior Developer
    in reply to muskans400426

    1. Start by fetching the required data using a record or data store entity. Then, structure the data as needed. For example:

    2. Utilize the "Text Doc from Template" smart service. Pass a template document containing a single key, such as "###DATA###." To create a "dat file", follow these steps:

    1. On your system, create a new text file.
    2. Insert ###DATA### into the file.
    3. Save the file and then change its extension to "dat".
  • 0
    Certified Lead Developer
    in reply to muskans400426

    How much data are we talking about? Do you need to run this frequently?

    You could create a text file, change the extension to "dat" and add a simple placeholder like this "###data###", then you can use the smart service "text from template" to write data in whatever format you like. As you might want to write this in batches, you can just add the same placeholder as the last line, and repeat that step.