cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kameshprsd
Frequent Visitor

UI Flows on 2020 release wave 2, Passing tables from AI builder forms processing

Hi,

 

The tables and other fields are extracted from the Ai builder, forms processing.

The same data is being used as an input to UI flows. The flows have been recorded using Power Automate desktop and contain a loop within for access this table and create lines.

 

How to pass these values to UI flows from the tables extracted form AI builder, forms processing.

eg:

 

common data : Invoice no, date, vendor code

Tabular data : Table extracted form forms processing contains : Item name, qty and amount

 

expectation :The UI builder will fill the header portion with common data and the loop will fill up the lines for each line of tabular data .

 

Current behaviour : when trying to create a flow it loops the entire UI flow for each line of tabular data.

 

How to achieve the same.

 

thanks

1 ACCEPTED SOLUTION

Accepted Solutions
JoeF-MSFT
Power Apps
Power Apps

Hi @kameshprsd ,

 

Currently Power Automate Desktop only supports as inputs strings and not arrays – this is on the roadmap and will come in an upcoming update.

Having said that, there is a workaround to send array data to Power Automate Desktop.

1. You will need to save each column from the table returned by AI Builder into an Array variable, like this:

2020-10-31_22-01-50.png

 

2. On Power Automate Desktop define an input, in the example you can see on the screenshot I’ve named it: ‘ListDescription’

On Power Automate Desktop the first step you need to add the action Convert JSON to custom object, the input object is ListDescription (or how you have named your input variable).

This action will give you a list object you can iterate, for example in a For each loop:

 

2020-10-31_22-00-33.png


I hope this gives you some guidance. 🙂

View solution in original post

2 REPLIES 2
JoeF-MSFT
Power Apps
Power Apps

Hi @kameshprsd ,

 

Currently Power Automate Desktop only supports as inputs strings and not arrays – this is on the roadmap and will come in an upcoming update.

Having said that, there is a workaround to send array data to Power Automate Desktop.

1. You will need to save each column from the table returned by AI Builder into an Array variable, like this:

2020-10-31_22-01-50.png

 

2. On Power Automate Desktop define an input, in the example you can see on the screenshot I’ve named it: ‘ListDescription’

On Power Automate Desktop the first step you need to add the action Convert JSON to custom object, the input object is ListDescription (or how you have named your input variable).

This action will give you a list object you can iterate, for example in a For each loop:

 

2020-10-31_22-00-33.png


I hope this gives you some guidance. 🙂

kameshprsd
Frequent Visitor

HI @JoeF-MSFT 

 

Thank you for the steps, going to use the same to test it out.

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Top Kudoed Authors
Users online (1,339)