Hi,
How can I assign an alias to the resources added to the service created by an SRM booking? I'm creating these bookings via an automation script.
My question is similar to the one here: https://community.dataminer.services/question/how-to-assign-an-alias-to-the-resources-in-services-created-by-srm/?hilite=Alias except that in my case, I already have the 'use node label as element alias' option set on the general page in the booking manager, and I also use this in code:
bookingManager.UseNodeLabelAsElementAlias = true;
engine.Sleep(1000);
The service at pre-roll ends up with devices but without aliases set. If you have any hints with what I can do to troubleshoot this further it would be really great!
images:
Hi Razvan,
Would it be possible to show me the node info inside the service definition ( only label and profile with the toggle button is necessary)?
Do you have the toggle button set to "by value" or "by reference"?
Would it be possible to change that to “By Value” and make sure the label is set to the correct value.
in code I can see that the ‘By Reference’ option is related to how the parameters are set (see pic added in initial description), so I’m not sure this has anything to do with Aliases.
Also if I change the option in the service definition, all my old bookings will go into quarantine, so probably I don’t want that.
In the service definition, the option ‘By Reference’ is displayed. When I create the functions that I pass later to the Booking object, I use function.ByReference = false;