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.
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.