Current Selection Form in WF Profile

Contributor III

Hi - Is there an BRAPI to get the current form name from WF Profile ? I was able to get the list of Forms using the below code but I looking for when a user select the form it should return. Let me know if there any BRAPI functions 




						Dim objBRApiForms As XFFormsForWorkflow  = BRApi.Forms.Metadata.GetForms(si,si.WorkflowClusterPk)
						'Get the List of Required Forms
						Dim listfrm As  List (Of XFFormSummaryInfo) = objBRApiForms.OptionalForms



Valued Contributor

Have you tried objBRApiForms..CurrentWorkflowStepStatus to see where you are in the process?

Software Architect
MindStream Analytics
"Difficult done right away. Impossible takes a bit longer"

Thanks I will try but I am looking to return the current form name 

Contributor II

The XFFormSummaryInfo should be the place where you can grab the name of the Form


This class reveals the properties on the Form template that you can write logic against.  



Hope this helps

Tony,  Can you show us where do we get the reference to the runtime instantiated XFFormSummaryInfo object?  The code above looks like it would yield an Object not set to a reference error.

Software Architect
MindStream Analytics
"Difficult done right away. Impossible takes a bit longer"

Dim wfClusterPk As WorkflowUnitClusterPk = BRApi.Workflow.General.GetWorkflowUnitClusterPk(si,"Act_GLLoad.Forms","Actual","2023M1")
'Get Forms
Dim objXFFormsForWorkflow As XFFormsForWorkflow = BRApi.Forms.Metadata.GetForms(si, wfClusterPk)
'Get Required Forms
Dim objlist As List(Of XFFormSummaryInfo) = objXFFormsForWorkflow.RequiredFor

For Each objformlist As XFFormSummaryInfo In objlist


Thanks I already getting the name but it will not change based on the selection. 

Tony , this code is creating an error , can you please give the reference for the runtime instantiated 'XFFormSummaryInfo' object?