Skip to main content
Newcomer
September 20, 2023
Solved

Manipulate or create workflow profile in BR

  • September 20, 2023
  • 1 reply
  • 0 views

Hi,

Is there any way to manipulate a workflow profile or create a new one using a business rule? 

If not, any way to extract / load xml in a BR? 

Can't find anything that would help me while browsing the api.

Best answer by JackLacava

I'm sorry, I have to correct myself. There currently isn't a public supported API to modify a workflow beyond changing the assigned entities. I guess the potential for screwing up is just too high.

This said, if you peruse some marketplace solutions, you'll find that there is a way; but it's completely unsupported.

1 reply

OneStream Employee
September 21, 2023

Start from BRApi.Workflow.Metadata.GetProfile(si, profileName) and manipulate the resulting object.

jesvamAuthor
Newcomer
November 10, 2023

Hi Jack and thanks for your reply! Sorry for my late response.

I see that the property descriptions for a workflow info says "Gets or Sets the profile name", so that sounds promising.

However just doing that doesn't update anything. I was assuming there would be something like the writeableMember object or the SaveMemberInfo method but for workflows, but I really can't find anything in the api. 

If you could shed some light on what I'm missing I would greatly appreciate that. Basically what I want to achieve is something like this: 

 

WorkflowProfileInfo wfTemplate = BRApi.Workflow.Metadata.GetProfile(si, "test");
wfTemplate.Name = "blabla";
WorkflowProfileInfo generatedWf = new WorkflowProfileInfo(wfTemplate); 
return null; 
OneStream Employee
November 10, 2023

I'm sorry, I have to correct myself. There currently isn't a public supported API to modify a workflow beyond changing the assigned entities. I guess the potential for screwing up is just too high.

This said, if you peruse some marketplace solutions, you'll find that there is a way; but it's completely unsupported.