File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -4709,7 +4709,7 @@ declare namespace Xrm {
47094709 * Returns a collection of steps in the stage.
47104710 * @returns An array of Step.
47114711 */
4712- getSteps ( ) : Step [ ] ;
4712+ getSteps ( ) : Xrm . Collection . ItemCollection < Step > ;
47134713 }
47144714
47154715 interface Step {
Original file line number Diff line number Diff line change @@ -777,3 +777,11 @@ function testAttributeType(formContext: Xrm.FormContext) {
777777 const isNumberAttribute = attributeType === "number" ; // This errors because the attribute is a StringAttribute, not a NumberAttribute
778778 const isStringAttribute = attributeType === "string" ; // This works because the attribute is a StringAttribute
779779}
780+
781+ // Demonstrate getSteps from active stage returns collection of steps
782+ function getStepsFromActiveStage ( formContext : Xrm . FormContext ) {
783+ const process = formContext . data . process ;
784+
785+ // $ExpectType ItemCollection<Step>
786+ const steps = process . getActiveStage ( ) . getSteps ( ) ;
787+ }
You can’t perform that action at this time.
0 commit comments