To be able to use Pricefx Studio in IDEA, you need to have a configuration file.
Create Config File
- Right click the project name and from the context menu select New > Create Pricefx configuration.
- Fill in the environment, partition, URL, user name, password and TFA token (if TFA is enabled).
- Based on this data, a config file will be created. For example:
- If you need to add more environments and partitions, repeat the above steps.
Create Config File with Help of PlatformManager
If you have a PlatformManager account, you can have the configuration file pre-generated with all the partitions. This helps you get started much faster.
- In IDEA go to Settings > Pricefx Studio.
- Fill in the PlatformManager username (your email) and set the token by clicking the 'Create token' button.
- This will redirect you to PlatformManager where you need to:
- Log in.
- Go to your Profile Settings > Tokens.
- Click the Add icon and create a new token.
- Copy and save its value.
- Use this value back in IDEA Settings.
- Click OK and close the Settings.
Passwords Management
Since Pricefx Studio 6.0, all credentials for partitions you define in config.groovy are stored in the default IDEA password manager (KeePass for Windows and KeyChain for Mac).
One of the advantages of this approach is that you can now safely store config.groovy in a Git repository, since the passwords are no longer available in the file.
How It Works
When you open a existing project in IDEA, config.groovy will get automatically migrated to the new structure​ (without the credentials).
After you push config.groovy to Git and other colleagues access these partitions in Studio for the first time, they will get prompted to enter username and password.
If you change the password on the partition meanwhile, simply create the connection again (as described above in Step 1) with new credentials. Alternatively, you can change the password using KeePass or KeyChain.