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

Unable to use destination in custom task UI in BTP workflow management

0 Kudos
1,045

I have followed this blog to use destination in my custon task ui5 application

https://blogs.sap.com/2020/09/08/calling-external-api-in-custom-task-ui-of-workflow-in-cloud-foundry...

And here is the screenshot of the changes I make

After doing al these setups, Now when I run this , it's supposed to use the destination url and hit the api, but rather this is considering the appId and destination as a string and hence giving the error. And Also attaching my workflow UI's url before it which is also not desired.

The screenshot of the error :

I am unable to understant why this error is happening.

What I am doing wrong??

Also I tried to use sap-cf-axios library to access destination, and the the main issue with this approch is that niether I can impot this library into my controller.js file , nor use the "require" syntax as both syntax is giving the undefined error. Why so??

Thanks in advance.

View Entire Topic
tobias_breyer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

please check what is marked, in the blog, with <<<<< NEW >>>>>>

Regards,

Tobias