How to execute Javascript code with dependencies from Azure Logic App?

Vivek Komarla Bhaskar 956 Reputation points
2023-07-10T14:52:54.33+00:00

Hi,

When I attempt to execute a Java script code for an authentication token using Logic app, I encounter an issue when I have to pass dependencies. Below is a screenshot showing how to retrieve a token, I already have an integration account. In addition, I have the username and password to access the API, but I cannot get the required token, since I am unable to pass the dependencies.

Screenshot 2023-07-10 at 3.41.37 pm

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
{count} votes

Accepted answer
  1. Sonny Gillissen 3,751 Reputation points Volunteer Moderator
    2023-07-10T17:50:26.2966667+00:00

    Hi Vivek Komarla Bhaskar,

    Thank you for reaching out on Microsoft Q&A!

    As of yet it is not possible to load any dependencies in your Logic App to support external libraries. The only possibility is to create an Azure Function holding all JS code and libraries, and call it from a Logic App.

    Please leave feedback for the Logic App team to request support for this in the future:

    https://feedback.azure.com/d365community/forum/cb47c115-7926-ec11-b6e6-000d3a4f032c

    Please click “Accept answer” if you find this helpful. Feel free to drop additional queries in the comments below!

    Kind regards,

    Sonny


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.