Skip to main content
Solved

Subroutines and the api

  • October 29, 2019
  • 2 replies
  • 292 views

Forum|alt.badge.img+3


We have made an subroutine and mark this as an API (OData). This subroutine works fine when you use no parameters. When we profile with sql server the call is done but the parameter is null. We use the http call in the example but not sure this is correct.

HTTP call
http://web04/indicium/iam/100/fnc_getUserEmail?param_usr_id='itpartner\ronald'


Metadata 
<Function Name="fnc_getUserEmail">
  <Parameter Name="param_usr_id" Type="Edm.String"/>
  <ReturnType Type="CENTER.subroutineScalarResult" Nullable="false"/>
</Function>

Best answer by Vincent Doppenberg

Hello Ronald,

 

The correct way to call that function is this:

http://web04/indicium/iam/100/fnc_getUserEmail(param_usr_id='itpartner\ronald')

 

Please refer to our API documentation:

https://office.thinkwisesoftware.com/docs/docs/indicium/api.html

 

I hope that helps

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

Forum|alt.badge.img+4

Hello Ronald,

 

The correct way to call that function is this:

http://web04/indicium/iam/100/fnc_getUserEmail(param_usr_id='itpartner\ronald')

 

Please refer to our API documentation:

https://office.thinkwisesoftware.com/docs/docs/indicium/api.html

 

I hope that helps


Forum|alt.badge.img+3
  • Author
  • Apprentice
  • 8 replies
  • October 30, 2019

Hi Vincent,

 

Thanks for the fast response. When a remove the backslash the call is working. But with an another function the problem was that thinkwise reorder the parameters so therefore the function was not working properly. Now i reorder in thinkwise the parameters and it works fine. Now everything is working good thanks for the answer it was very helpfull.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings