question

KahramanBayraktar avatar image
0 Votes"
KahramanBayraktar asked PramodValavala-MSFT edited

When Logic App Component Title Changes, Expression/JavaScript Fails

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PramodValavala-MSFT avatar image
1 Vote"
PramodValavala-MSFT answered PramodValavala-MSFT edited

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


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi. Thanks for the answer. CTRL+D is a nice way to locate the instances even though it doesn't save us from manual change. As for the second part, using variables has nothing to do with the issue of updating control names because you can't use variables for control names.

0 Votes 0 ·

@KahramanBayraktar Yes. That is correct. The variables in my answer were referring to initializing ones with the value required to be used later on.

0 Votes 0 ·