Calling API using Javascript
Question

Hi there, I'm trying to call API in client side using Javascript as shown below. I'm able to get the values in the console of the browser but unable to bring it to the  output parameter. Could someone  help me with it? Thanks!

Hi,

For the update I added $resolve(); as mentioned in this post for an async call.

In the post you can find documents for more detail.

Regards,

Khuong

Hi Diyab,

That error can mean a number of things.

That doesn't help you here of course, but these things are difficult to tackle without more information. 

I cannot check from here.

Try to do it with the Outsystems Integration Studio, you can define variables there

Hi @Diyab Rehman 

Please check below code which works for me

Hope this will work for you

Hi @Yogesh Javir ,

Thanks but it is not working in my case, I tried the same code of yours. Please find the attached oml if incase you would like to refer. Or it would be great if you could share your oml file.

TestSamples.oml

Hi,

I updated the .oml please take a look.

Cheers,

Khuong


TestSamples.oml

Hi,

For the update I added $resolve(); as mentioned in this post for an async call.

In the post you can find documents for more detail.

Regards,

Khuong

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.