web stats
Read file and post each line to an api - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2019, 05:32 AM
Jacksonv Jacksonv is offline
What's HL7?
 
Join Date: Jan 2019
Location: Chennai,India
Posts: 5
Jacksonv is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 01-03-2019, 08:45 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 894
agermano is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 01-04-2019, 02:56 AM
Jacksonv Jacksonv is offline
What's HL7?
 
Join Date: Jan 2019
Location: Chennai,India
Posts: 5
Jacksonv is on a distinguished road
Default

Quote:
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.
Reply With Quote
Reply

Tags
file reader, http post

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:25 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation