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?


Report
All responses (
Answers (