Recently while helping a friend informs, encountered a bug or issue with the snippet code mentioned in Doc.microsoft.com, Incorrect syntax was identified
- The requirement was to hide create a button on the business process flow on a certain condition and Microsoft document gives a function to use getNavigationBehavior()
Refer : https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-data-process/stage/getnavigationbehavior
- but was getting Error : formContext.data.process.getActiveStage.getNavigationBehavior is not a function
- After some debugging found the Document page code need some amendment
- If this type of issue is identified on page , we have an option to submit feedback and raise It in https://github.com/MicrosoftDocs