Exclude certain elements from Array

Nandan Hegde 29,896 Reputation points MVP
2021-10-26T09:14:53.007+00:00

Hey,
I have an variable of type Array as seen below :

143648-image.png

I need to copy that value as string in another variable of type:String excluding Column values.

Note: the array is random and the only thing which is same is Column value and all other value names can be random like type etc.

So how to exclude that particular element

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,643 questions
0 comments No comments
{count} votes

Accepted answer
  1. ShaikMaheer-MSFT 37,971 Reputation points Microsoft Employee
    2021-10-27T15:46:22.733+00:00

    Hi @Nandan Hegde ,

    Thank you for posting query on Microsoft Q&A Platform.

    Assuming your column values always be in first position of array. If would like to take "type:int64" key value as string in to another variable? If yes you can try to use below expression.
    @string(variables('<array variable name>')[1])

    If you there is no guarantee that Column key will be in first position, then may be consider taking all array values as string in variable and then use replace() function to replace column values with empty.

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 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

0 additional answers

Sort by: Most helpful