As mentioned below, I think that indeed this will not work. The workflow logic is trying to add navigation elements to the top page action menu with some validations. A form part does not have a top-page menu bar. You can add action menu elements, but that is not the same as used on a details form page.
Thanks everyone for the responses! The business use case here is to have the workflow button on a form part that is in a workspace. (In the tabbed section).
I have setup everything as you would on a standard form and I don't see it showing up. I don't believe it will work but thought I would ask.
If it is already present at form level, then workflow is not actually required at form part level.
If it is a requirement that you can submit from part level too, then did you write same canSubmitToWorkflow at form level and provided the properties of workflow at form design level?
Can you provide more information (such as screenshots or how-to) to help us better solve the problem? At this time, the information you have provided is not sufficient to support us in proposing a solution.
This is an interesting question. I have never tried it, but I doubt if it will work. Can you tell the business scenario for this requirement? That is just for my interest.
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.