web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Suggested answer

Get value from Array

(0) ShareShare
ReportReport
Posted on by
Hi experts,
I am trying to fetch the value for the field 'JournalNum' in the below array. 
[
"UserBlockId:",
"Approver:0",
"AssetTransferType_LT:0",
"BankAccountId:",
"BankRemittanceType:0",
"CurrencyCode:",
"CurrentOperationsTax:0",
"CustVendNegInstProtestProcess:0",
"DefaultDimension:5637383095",
"DetailSummaryPosting:0",
"DocumentNum:",
"EndBalance:0",
"EUROTriangulation:0",
"ExchRate:0",
"ExchrateSecondary:0",
"FixedExchRate:0",
"FixedOffsetAccount:0",
"GroupBlockId:",
"InUseBy:",
"JournalBalance:0",
"JournalName:AP-VINV",
"JournalNum:JBN-XXX-0000004",
"JournalTotalCredit:0"
]
 
When extracting the value from compose using the below criteria, it gives the error 
 
My compose action is 
 
 
Any idea how to retrieve the value from the array ?
I have the same question (0)
  • Suggested answer
    SpongYe Profile Picture
    5,603 Super User 2025 Season 2 on at
    Get value from Array
     
    The current array implementation does not support the intended usage. To achieve the desired functionality, it is recommended to use the following approach:
    variables('varArray')[21]
     
    Hope this helps!
  • Suggested answer
    SamLed Profile Picture
    2,334 Moderator on at
    Get value from Array
    Hi,
     
    SpongeYe is right if you want to use the array you propose in its actual form. But you can also transform it into an object supporting the implementation you were trying to use:
     
     
    Results:
     
     
    __________________________________________________________________________________________________
    If this is the answer for your question, please mark the post as Accepted Answer.
    If this answer helps you in any way, please give it a like.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 655 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 371 Moderator

#3
chiaraalina Profile Picture

chiaraalina 276

Last 30 days Overall leaderboard