Quantcast
Channel: Software Communities : Popular Discussions - ActiveRoles
Viewing all articles
Browse latest Browse all 1277

Help with SetEffectivePolicyInfo

$
0
0

I'm trying to use a policy script to generate a default value for some UM attributes when Enabling UM for a user.

 

Here's the code:

function onGetEffectivePolicy($Request) {     if ($Request.Class -eq "User" {          $line = #Some code to get the extension          $address = #Some code to get the SIP Address          $Request.SetEffectivePolicyInfo("edsva-MsExch-UM-ExtensionNumbers", $Constants.EDS_EPI_UI_DISPLAY_NOTE, "This value was generated automagically")          $Request.SetEffectivePolicyInfo("edsva-MsExch-UM-SIPAddress", $Constants.EDS_EPI_UI_DISPLAY_NOTE, "This value was generated automagically")          $Request.SetEffectivePolicyInfo("edsva-MsExch-UM-ExtensionNumbers", $Constants.EDS_EPI_UI_GENERATED_VALUE, $line)          $Request.SetEffectivePolicyInfo("edsva-MsExch-UM-SIPAddress", $Constants.EDS_EPI_UI_GENERATED_VALUE, $address)     }
}

 

These values are already stored somewhere else and to prevent typo's the UM guys want them automatically filled in, but when I get to those values on the form they are still coming up blank.  I know that part of it is working because when I click the little scroll thingy, I see the "This value was generated automagically" there.

 

HELP!!


Viewing all articles
Browse latest Browse all 1277

Trending Articles