Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Because of repetitive tasks, calling a Flow from another one with parameters

(0) ShareShare
ReportReport
Posted on by 331

Hello all,

As I'm very new in Power Automate, I prefek asking before loosing my time finding the operations to achieve this : 

 

I work for a school a we have a hudge database to manage our students  and their academic careers (subscriptions, notes, diplomas, etc.)

Has we have many many administratives tasks, I need to automate some using Power Automate and Power Apps.  To do that, I can access the datas of our database using rest api calls. These calls return JSON objects.

 

In the database interface, we are working with views like this : 

 

forstera_0-1624608092301.png

Each view has a name and some fields (in green ) to filter the results.

So, when I make a rest api call, I need to transmit the view name and I receive a json object containing the technical informations of the view like this :

 

{
 "Id": 1416,
 "DataClassId": "Anlass",
 "Designation": "PA-Classes",
 "SearchFields": [
 {
 "Id": 0,
 "FieldId": "Id1",
 "Position": 1,
 "Width": 73,
 "HeaderText": "ID événement",
 "TypeName": "Int32",
 "SearchText": null,
 "SortDirection": null,
 "DropDownItems": null,
 "GroupIndex": null,
 "PrimaryKeyIndex": null,
 "IsListColumn": false,
 "Operator": null
 },
 {
 "Id": 49,
 "FieldId": "AnlassNr",
 "Position": 2,
 "Width": 173,
 "HeaderText": "Numéro d'événement",
 "TypeName": "String",
 "SearchText": null,
 "SortDirection": "asc",
 "DropDownItems": null,
 "GroupIndex": null,
 "PrimaryKeyIndex": null,
 "IsListColumn": false,
 "Operator": null
 },
	 {
 "Id": 73,
 "FieldId": "UNTERRICHTSSPRACHE_BEZEICHNUNG",
 "Position": 8,
 "Width": 55,
 "HeaderText": "Langue d’enseignement",
 "TypeName": "String",
 "SearchText": null,
 "SortDirection": null,
 "DropDownItems": [
 "Allemand (Suisse)",
 "Français",
 "Deutsch",
 "Französisch",
 "Italienisch",
 "Bilingue",
 "Englisch"
 ],
 "GroupIndex": null,
 "PrimaryKeyIndex": null,
 "IsListColumn": false,
 "Operator": null
 },

If I want the data of that view, I've to send back  this received objet without any modification. But If i want to add a filter to receive just some specific datas, I need to modify this object and, for the field I want to be filtered, I need to replace the value of the field "SearchText":null, by a value (for example here : "SearchtText":"Englisch",)

 

So my idea is creating a "kind of function" with Power automate. I would call this Power Automate flow with the full json object, the fiel id I'd like to filter and the value of the filter. In return, I would receive the modified json object ("SearchText":<Value Received in Parameter>,).

 

Inside my flow, I would make a for each 'SearchField' object until I found the correct id and the modify the field 'SearchText" value.

 

Do you think It's the best way to achieve this or is there a better solution ? 

Thanks to all for your help 🙂

 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,631 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,991 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow