A service reservation instance object is created locally and the goal is to store it on the server (with the help of automation), retaining the name of the user ("CreatedBy" property) that initiated the creation of the object.
How can this be achieved ?
Hey Ciprian,
When you setup the helper of the API (ResourceManagerHelper in your case), make sure you use the following calls to handle the message request: "engine.SendSLNetMessages" and not "Engine.SLNetRaw.HandleMessages"
For an example with the JobManagerHelper:
You should setup the helper with: (this will cause all the history changes to be correctly under the user that is currently executing the interactive script)
Var helper = new JobManagerHelper(_engine.SendSLNetMessages);
And NOT with (this will cause all history changes of the jobs to be under user “Administrator”)
Var helper = new JobManagerHelper(Engine.SLNetRaw.HandleMessages);
Make sure that the engine object passed by the Run method in the automation script is used for the SLNet messages callback of the ResourceManagerHelper.
The name of the user that executes the script will then be used for the 'Created By' property.