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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (3,245)