cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

How to get response of one service into another service

YS_10134308
10-Marble

How to get response of one service into another service

Hello,

 

 

 

I have created two things

 

1 Device

 

2 Databasecontroller

 

 

 

1. In first thing(Device) I have written below code in service.

 

    let result = jsonmessage;

 

2. In second thing(DatabaseController) I want response of Device thing service using below code

 

    var serviceName = "ConvertData";
    let result=Things["Device"][serviceName]();

 

 

 

it is returning blank data.

3 REPLIES 3
PaiChung
22-Sapphire I
(To:YS_10134308)

You can call the first service from the second service.

Hi,

 How to pass one service data(response) to another service?

PaiChung
22-Sapphire I
(To:YS_10134308)

A service has a return, so in the second service set whatever you want to output as the result and set the output to the proper base type.

Top Tags