Zoho Flow - How to consume subarray from webhook

Zoho Flow - How to consume subarray from webhook

I am trying to integrate my ecommerce cart system with Inventory using Flow by receiving a JSON webhook.  Most things are pretty straight forward, however I'm trying to understand how to create a sales order from a transaction that contains multiple items as the items are contained in a subarray.  Here is a snippet of the webhook I receive:
  1. {
  2. "webhookTrigger": {
  3. "payload": {
  4. "_embedded": {
  5. "fx__customer": {
  6. "date_created": null,
  7. "password_hash_config": 8,
  8. "last_name": "Last",
  9. "last_login_date": null,
  10. "tax_id": null,
  11. "password_salt": null,
  12. "password_hash_type": "phpass",
  13. "forgot_password_timestamp": null,
  14. "date_modified": null,
  15. "is_anonymous": true,
  16. "password_hash": "",
  17. "id": ,
  18. "first_name": "First",
  19. "email": "customer@email.com",
  20. "forgot_password": null
  21. },
  22. "fx__payments": [
  23. {
  24. "amount": 36.3,
  25. "cc_exp_month": "01",
  26. "paypal_payer_id": null,
  27. "date_created": "2019-06-24T10:26:55-0700",
  28. "gateway_type": "authorize",
  29. "third_party_id": null,
  30. "type": "plastic",
  31. "cc_number_masked": "xxxxxxxxxxxx1111",
  32. "cc_exp_year": 2021,
  33. "cc_type": "Visa",
  34. "date_modified": "2019-06-24T10:26:55-0700",
  35. "purchase_order": null,
  36. "processor_response": "",
  37. "processor_response_details": null,
  38. "fraud_protection_score": 0
  39. }
  40. ],
  41. "fx__items": [
  42. {
  43. "expires": 0,
  44. "code": 1863,
  45. "discount_details": null,
  46. "is_future_line_item": false,
  47. "subscription_frequency": null,
  48. "_embedded": {
  49. "fx__item_options": [
  50. {
  51. "weight_mod": 0,
  52. "date_modified": null,
  53. "date_created": null,
  54. "name": "Color",
  55. "price_mod": 0,
  56. "value": "Forest Green"
  57. }
  58. ],
  59. },
  60. "price": 28.95,
  61. "delivery_type": "shipped",
  62. "subscription_start_date": null,
  63. "discount_name": null,
  64. "base_price": 28.95,
  65. "quantity_max": 0,
  66. "parent_code": null,
  67. "subscription_next_transaction_date": null,
  68. "shipto": "Me",
  69. "height": 0,
  70. "image": "",
  71. "quantity": 1,
  72. "date_created": null,
  73. "sub_token_url": null,
  74. "length": 0,
  75. "weight": 1,
  76. "discount_type": null,
  77. "url": "",
  78. "subscription_end_date": null,
  79. "date_modified": "2019-06-24T10:23:50-0700",
  80. "quantity_min": 0,
  81. "name": "Widget",
  82. "width": 0,
  83. "downloadable_url": null
  84. }
  85. ],
  86. "fx__shipments": [
  87. {
  88. "country": "US",
  89. "shipping_service_id": 14,
  90. "shipping_service_description": "USPS Priority Mail 2-Day",
  91. "total_price": 36.3,
  92. "address2": null,
  93. "city": "Fourtown",
  94. "address1": "123 Pionener Rd",
  95. "date_created": "2019-06-24T10:26:55-0700",
  96. "last_name": "Last",
  97. "address_name": "Me",
  98. "total_tax": 0,
  99. "total_item_price": 28.95,
  100. "date_modified": "2019-06-24T10:26:55-0700",
  101. "phone": null,
  102. "total_shipping": 7.35,
  103. "company": null,
  104. "region": "",
  105. "postal_code": 55555,
  106. "first_name": "First"
  107. }
  108. ],
  109. "fx__billing_addresses": [
  110. {
  111. "customer_postal_code": 55555,
  112. "customer_country": "US",
  113. "address2": null,
  114. "city": "Fourtown",
  115. "address1": "123 Pionener Rd",
  116. "date_created": null,
  117. "customer_phone": null,
  118. "last_name": "Last",
  119. "address_name": "Default Billing Address",
  120. "date_modified": "2019-06-24T10:26:55-0700",
  121. "company": null,
  122. "region": "",
  123. "first_name": "First"
  124. }
  125. ]
  126. },
  127. "total_shipping": 7.35,
  128. "total_future_item_price": 0,
  129. "id": ,
  130. "is_test": true,
  131. "transaction_date": "2019-06-24T12:26:55-0500",
  132. "store_id": ,
  133. "total_future_shipping": 0,
  134. "currency_symbol": "$",
  135. "date_created": null,
  136. "customer_first_name": "First",
  137. "total_tax": 0,
  138. "transaction_type": null,
  139. "locale_code": "en_US",
  140. "date_modified": "2019-06-24T10:26:55-0700",
  141. "customer_email": "customer@email.com",
  142. "data_is_fed": true,
  143. "status": "approved"
  144. }
  145. }
  146. }
So if I want the customer name I can use ${webhookTrigger.payload._embedded.fx__customer.first_name} to retrieve the first name.  No problem there.

If I want to get the name of the first item I need to use ${webhookTrigger.payload._embedded.fx__items[0].name} by specifying the first position in the items array, but this will only ever retrieve the name of the first item.  How do I write this so that I can get the item name for "n" items?

Thank you for your help!