cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get the working/active repsoitory Name & Environment name throught macro

Arunakiri
Super Contributor

Hello Team,

 

Could you please guide me How to get the working/active repsoitory Name & Environment name through macro ? 

 

 

Example :

ABC( environment name )

     -ARepository  

     -BRepository - Im working on this repository currrently

     -CRepository

 

I have to display the environment name as "ABC" and repository as "BRepository" through macro

 

Thanks in advance ,

1 Reply

jhorber
MEGA
MEGA

Hello Arunakiri

 

You can try this (VB script)

 

Set oRoot = GetRoot
Msgbox "This is the current environment: " & oRoot.CurrentEnvironment.Path
Msgbox "This is the current repository: " & oRoot.Name
Jerome