The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.

Forum Discussion

ssmith-nova's avatar
ssmith-nova
Contributor
1 year 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.