Azure Logic Apps

Vijay 101 Reputation points
2022-07-01T07:41:56.21+00:00

I want to select only Name of the file from Filter Array connection.

I have used compose action .

But im getting error.

Can anyone help me with this?
216798-image.png

I want to get only last part of Filename

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

2 answers

Sort by: Most helpful
  1. Sujithreddy Komma 571 Reputation points Microsoft Employee
    2022-07-01T09:22:33.377+00:00

    Hi Vijay,

    Thanks for writing to us

    if you want to extract only the name then you can substring like below

    "@substring(triggerBody()?['Filename'],0,indexOf(triggerBody()?['Filename'],'.'))"

    if you want to extract after the . Then it will be like

    "@substring(triggerBody()?['Filename'],indexOf(triggerBody()?['Filename'],'.'))"

    If the Answer is helpful, please click Accept Answer and up-vote, so that it can help others in the community looking for help on similar topics.


  2. Kamlesh Kumar 3,861 Reputation points
    2022-07-01T12:06:06.793+00:00

    Hi @Vijay

    Thank you for asking this question on the Microsoft Q&A Platform.

    I would suggest to use the condition to check the filename ends with ind and then take your action accordingly, like below screenshot.

    216898-image.png

    Regards,
    Kamlesh Kumar
    BizTalk Techie

    Please don't forget to click on 205836-130616-image.png or upvote 205759-130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is How

    Want a reminder to come back and check responses? Here is how to subscribe to a Notification

    If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

    0 comments No comments