C# Inline Scripting doesn't work anymore when custom functions are used

Griet Van Compernolle 0 Reputation points
2025-11-10T16:52:16.5666667+00:00

I have a Logic App workflow which contains a C# Inline Script action, which runs without any issue:

image

Adding another workflow to the same Logic App making use of custom actions, my workflows with C# Inline Scripting don't work anymore.

User's image

image

As soon I remove the custom function from the lib-folder, my workflow with C# Inline Scripting works again.

image

It seems there is a conflict when the Logic App contains both C# Inline Scripting & custom functions.

We can consider to recreate the inline scripting as a custom function, but on the other hand we want to keep the current inline scripting and also use the custom function in one logic app.

Has anyone a clarification on this?

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

1 answer

Sort by: Most helpful
  1. Praveen Kumar Gudipudi 1,495 Reputation points Microsoft External Staff Moderator
    2025-11-21T11:22:07.7133333+00:00

    Hello Griet Van Compernolle,

    Thanks for the update.

    Issue: C# Inline Scripting doesn't work anymore when custom functions are used.

    Resolution: Mixing inline scripting & local functions inside one logic app doesn't seem to work. As soon a custom library (which is needed for the local function) is available in the logic app, the inline script function doesn't work anymore.

    Since our logic app contains workflow which requires a local function action (https://learn.microsoft.com/en-us/azure/logic-apps/create-run-custom-code-functions), we created our inline script as another function. Like this we don't encounter this conflict anymore.

    User's image

    User's image

    Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help. Your upvote will be beneficial for the community users facing similar issues.

     

    1 person found this answer helpful.
    0 comments No comments

Your answer

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