Good morning. Using automation API (& c#). L...
# automation-api
m
Good morning. Using automation API (& c#). Latest verions. Is there a way to dynamically set Organizations? Or am I stuck with just having "long" project names?
b
Where are you trying to set the organisation? Is it in the Pulumi program, or somewhere else in the code?
m
During/right before the new InlineProgramArgs() or LocalWorkspace.CreateOrSelectStackAsync() calls.
At the END of the day, I can always use long obnoxious project names that provide a better picture of what something belongs to, but if I can set the org dynamically it just makes my life a bit easier.
b
Is the question here where you need to set the organisation to ensure that a stack is assigned to the organisation, or you want to get the organisation name and append it to the project name?
m
I want to dynamically assign the organization name during the creation process. Everything dynamically run (no pre-set config files/etc). So whether that is somewhere before new InlineProgramArgs(), LocalWorkspace.CreateOrSelectStackAsync(), or during a SetConfigAsync() step it doesn't really matter.