07-21-2023 01:18 PM
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
Thanks
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
07-21-2023 04:50 PM - edited 07-21-2023 04:53 PM
Have you tried objBRApiForms..CurrentWorkflowStepStatus to see where you are in the process?
07-22-2023 02:14 PM
Thanks I will try but I am looking to return the current form name
07-24-2023 09:03 AM
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
07-24-2023 09:13 AM - edited 07-24-2023 09:15 AM
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.
07-24-2023 09:48 AM
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
objformlist.Name
Next
07-24-2023 09:46 AM
Thanks I already getting the name but it will not change based on the selection.
09-13-2023 03:08 AM
Tony , this code is creating an error , can you please give the reference for the runtime instantiated 'XFFormSummaryInfo' object?