Logic App - Split and Length Help

Nigel Clark 96 Reputation points
2020-08-30T16:38:25.74+00:00

Hi.

I am struggling to extract an ID from an email subject.

The value is: "Re: [#4771] Slack Request",

I am attempting various split and trim but am having no luck. Any idea how I can extract the value 4771 from the above subject into a logic app variable?

Thanks in advance.

Nigel

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

Accepted answer
  1. Nigel Clark 96 Reputation points
    2020-08-30T20:51:34.423+00:00

    I got this working using the following:

    last(split(first(split(triggerBody()?['subject'],']')),'#'))

    0 comments No comments

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.