I am using 9.0LTS
I am creating request parameters as follows (for an IT Shop request):
paramTenant - Tenant name
paramPartner - Partner name
paramFirstName - First name
What I have is that you can select an AAD tenant (paramTenant), and then select a user within that tenant (paramPartner). What I would like to do, and not sure if it is possible, that if you select a paramPartner user, that it will use that UID_AADUser to populate paramFirstName with the value from the AADUser record. Sounds easy.
I think I need to use the On property changed script on the paramPartner parameter. However, it seems that what I put it there does not work....
I have tried
ParameterSet("paramFirstName") = "test value"
$PC(paramFirstName) = "test value"
It keeps complaining that Class member declaration expected.
I did try this code from this post but get the same error: RE: Request properties (new style): Change parameter type dynamically
At the moment I am just trying to set field values when paramPartner is changed before trying the more complicated requirement.
So, two questions
- How do I set another parameter field value on update of a property being changed?
- Am I able to achieve what I am wanting (or is it outside the scope of the request parameter)?