web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

How to use PowerApps Client API to retrieve step attributes?

(0) ShareShare
ReportReport
Posted on by 10

I am trying to create a javascript web resource in model driven app that checks if all the fields in a BFP step are filled out. I am following this documentation:
https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/formcontext-data-process

 

 

 

 var activeStage = context.getFormContext().data.process.getActiveStage();
 var steps = activeStage.getSteps();
 var stepFields = [];
 for (var i = 0; i < steps.length; i++) {
 var step = steps[i];
 var attribute = step.getAttribute();
 stepFields.push(attribute.getName());
 }

 

 

 

 stepFields is supposed to collect the fields used in the step, except it always returns an empty array. Any idea what I am doing wrong?

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 655 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 391 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 225

Last 30 days Overall leaderboard