Forum Discussion

ssmith-nova's avatar
ssmith-nova
Contributor
6 hours ago

how do I check if a period is locked or unlocked in vb.net

I have a requirement to load to the most recent unlocked period.  

Using VB or C#, how do I check if a period is locked or unlocked?

Thanks,

Scott

1 Reply

  • DanielWillis's avatar
    DanielWillis
    Valued Contributor

    You can check the status of workflows using the function BRApi.Workflow.Status.GetWorkflowStatus(...). This returns a WorkflowInfo object that has a Locked property.