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 Platform Community / Forums / Power Apps / How to use PowerApps C...
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?

Categories:
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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard