Hi,
I have a requirement, like I have a sub-grid on custom Entity, on that sub-grid I need to add a download button, on click of that button I want to run an Ms flow.
Where I need to pass an array of selected records id from the sub-grid and I want to get these id's inside the power automate to achieve my further requirements.
But I am not able to trigger the Ms flow on click of button.
Here I have attached two SS below, where I have written the JS code to run a Ms Flow and second for Ms flow /Json Schema/ to get the array of id's.
Js Code to run the MS flow:
My Array After Converting into JSON String:
[{/Id/:/12348/,/Name/:/Test1/,/TypeName/:/new_abc/,/TypeCode/:333444}
,{/Id/:/4567/,/Name/:/Test2/,/TypeName/:/new_efg/,/TypeCode/:35678}]
MS Flow JSON Schema:
JSON Schema Code:
{
/type/: /array/,
/items/: {
/type/: /object/,
/properties/: {
/Id/: {
/type/: /string/
},
/Name/: {
/type/: /string/
},
/TypeName/: {
/type/: /string/
},
/TypeCode/: {
/type/: /integer/
}
},
/required/: [
/Id/,
/Name/,
/TypeName/,
/TypeCode/
]
}
}