15

Hi i was searching on if there is any way to put the logic app identifier into a logic app actions input field?

Is it possible to retrieve it some how?

enter image description here

acoelhosantos
  • 1,549
  • 14
  • 19
H4p7ic
  • 1,669
  • 2
  • 32
  • 61

1 Answers1

33

Found it!

@{workflow()['run']['name']}

Worked like a charm.

H4p7ic
  • 1,669
  • 2
  • 32
  • 61
  • 3
    Just FYI, the same data is also in any outgoing request originated from the Logic Apps. It's in header "X-Ms-Workflow-Run-Id". – Derek Li May 03 '17 at 23:38
  • Just to add that regarding the outgoing headers, there are a couple more that might give you more insight also: x-ms-execution-location, x-ms-workflow-id, x-ms-workflow-version, x-ms-workflow-name, x-ms-workflow-system-id, x-ms-workflow-run-id, x-ms-workflow-run-tracking-id, x-ms-workflow-operation-name, x-ms-workflow-subscription-id, x-ms-workflow-resourcegroup-name, x-ms-tracking-id, x-ms-correlation-id, x-ms-client-request-id, x-ms-client-tracking-id, x-ms-action-tracking-id, x-ms-activity-vector. – acoelhosantos Jun 28 '18 at 17:02
  • In the context of Microsoft Flow, the syntax seems to be `workflow().run.name` – Mike Honey Jan 04 '19 at 02:56
  • workflow()['run']['name'] in expression works for me – thotwielder Jun 05 '20 at 02:00
  • For posterity, the @{workflow()['run']['name']} syntax is used in the 'Code View' and the workflow()['run']['name'] syntax is used in 'App Designer' expressions. The @{} wraps the expression when the tool creates the backing code. – Trevor.Screws Aug 16 '21 at 20:06