Показать сообщение отдельно
Старый 05.04.2022, 09:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
crmtipoftheday: Tip #1434: Can you count OR how to add index to array in Power Automate
Источник: https://crmtipoftheday.com/1434/can-...power-automate
==============

When developers like Mike! start their sentence with “this is probably really simple”, you know that it rarely is. (No idea why he’s so excited about his name though, I suspect there is some math flex in here).
This is probably really simple, but anyone know how I would add an index to an array of objects in flow e.g. (– thank you Tîpp Jäår, for nice formatting; -you’re welcome, Mike! – t.j.).

Initial Array (returned from a connector):
[
{“Name”: “Foo”},
{“Name”: “Bar”}
]

Output Array:
[
{“Order”: 1, “Name”: “Foo”},
{“Order”: 2, “Name”: “Bar”}
]


Mike!!!
Honestly, I was waiting for Linn to produce some json > xml > xpath > json magic but the best he could come up with was, and I quote, “
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.