web stats
Problems with Channel Variable in JSON string to http Sender - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 12-12-2019, 05:17 AM
con con is offline
OBX.1 Kenobi
 
Join Date: Nov 2018
Location: Berlin
Posts: 42
con is on a distinguished road
Default Problems with Channel Variable in JSON string to http Sender

Hi,

I have a strange behavior, when I put a variable with an Integer Doc ID into the destination content of a http sender:

it always adds a + .0 to the Doc Id.

the Doc Id is now some kind of float and rejected by the web api, because it is expecting a 'System.Int64'

what I've already tried is to cast the variable as int in the mapping

Anyone can help me on this?
__________________
Work for a NPO health care provider in Berlin
  • Current Version of MC 3.4.1.770 with the onboard MySQL Database on a Windows Server 2012 R2
Reply With Quote
  #2  
Old 12-12-2019, 06:13 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,346
cory_cole is on a distinguished road
Default

Can you post the code that you are using?
Reply With Quote
  #3  
Old 12-13-2019, 06:05 AM
con con is offline
OBX.1 Kenobi
 
Join Date: Nov 2018
Location: Berlin
Posts: 42
con is on a distinguished road
Default

ok, found my mistake: forgot to remove the quotes from the JSON string value
__________________
Work for a NPO health care provider in Berlin
  • Current Version of MC 3.4.1.770 with the onboard MySQL Database on a Windows Server 2012 R2
Reply With Quote
Reply

Tags
destination connector, http sender, json, mapping

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 08:10 PM.


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