How can I retrieve the profile instance that is applied to a resource of a booking in the LSO script?
Stijn Declerck [SLC] [DevOps Advocate] Selected answer as best 3rd April 2023
Hi Stijn,
Below you have a code example to get the Profile Instance ID on the node. Resource is an instance of class SrmResourceConfiguration.
resource.UsageDefinition.NodeConfiguration.ProfileInstanceID
Stijn Declerck [SLC] [DevOps Advocate] Selected answer as best 3rd April 2023
Hi Stijn,
You can use: 'var profileInstance = SrmManagers.ProfileHelper.ProfileInstances.GetProfileInstance(resource.UsageDefinition.NodeConfiguration.ProfileInstanceID);
Jorge Dias [SLC] [DevOps Enabler] Edited answer 3rd April 2023