When Logic App Component Title Changes, Expression/JavaScript Fails

Kahraman Bayraktar 21 Reputation points
2021-07-12T07:23:00.163+00:00

When I need to use the ID of a component in expressions (or in a JavaScript code), I need to write the ID manually. And then if there is a change on this ID, the expression fails because the id in the expression does not get updated automatically.

Is there any way to use IDs without a need for manual intervention in the expression?

Case 1:

113726-logic-app-question.png

Case 2:

113728-logic-app-question-2.png

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

Accepted answer
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2021-07-14T07:52:54.587+00:00

    @Kahraman Bayraktar The action names (rather the snake case versions of them) are used to identify which action is being referred to. Since this is derived from the name of the action, the change needs to be made across the workflow.

    One way to better make this kind of change is using the Code View of the Logic App, where you can use Ctrl + D to multiselect the name of the action and make changes in one shot.

    Another way would be to leverage variables which allow you to store values in named variables which you can control. This would however mean having extra actions to initialize these variables.

    1 person found this answer helpful.

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.