Skip to main content
1-Visitor
December 26, 2019
Solved

two outputs in a service

  • December 26, 2019
  • 1 reply
  • 904 views

Hi All,

I've an service as:

 

If(Condtion)

{

 //result should be infotable

}

else

{

//result should be an string

}

 

how can i achieve this, please help.

Best answer by CarlesColl

You can't.

 

Just make an infotable for both results, you can make an infotable which first column it's for instance baseType, and second column it's a String and Third column it's an Infotable, then based on baseType column use second or third column.

1 reply

1-Visitor
December 26, 2019

You can't.

 

Just make an infotable for both results, you can make an infotable which first column it's for instance baseType, and second column it's a String and Third column it's an Infotable, then based on baseType column use second or third column.