Announcement

Collapse
No announcement yet.

Read file and post each line to an api

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Read file and post each line to an api

    I am new to mirth. I need help. My use case is to read a file(csv) line by line,perform transformation and post each line as json to an api. By transformation i mean to transform a line from csv to json.

    I am using "file reader" as source connector type. I know we can post a data to an api using "HTTP Sender" destination connector type.

    But i have no idea how to post each line in file individually to an api. Eagerly waiting for any help. Thanks.

    Note: I am using Mirth Connect Administrator 3.6.1

  • #2
    You are close. On the source tab of your channel change the "Process Batch" setting to Yes. The Delimited Data Type by default is set up for csv files, and will split batches by each line.

    Comment


    • #3
      Originally posted by agermano View Post
      You are close. On the source tab of your channel change the "Process Batch" setting to Yes. The Delimited Data Type by default is set up for csv files, and will split batches by each line.
      Thanks a lot germano. That worked.

      Comment

      Working...
      X