Hello,
from what I remember this can not be done with OOB functions.
You need to use a custom activity, you can write one (delete Attribute value) or use powershell activity to clear the Attribute through webservice.
/Peter
+1 for Peter's input.
You could use my Code Run activity and just return a null for the value - that would clear the value. Have a look here - http://fimactivitylibrary.codeplex.com/wikipage?title=Code%20Run&referringTitle=Documentation
Something like this -
using System; public class FIMDynamicClass { public object FIMDynamicFunction() { return null; } }
+1 for Peter's input.
You could use my Code Run activity and just return a null for the value - that would clear the value. Have a look here - http://fimactivitylibrary.codeplex.com/wikipage?title=Code%20Run&referringTitle=DocumentationSomething like this -
using System; public class FIMDynamicClass { public object FIMDynamicFunction() { return null; } }
Couldn't you just set the attribute to " " (space) using the OOB Function Evaluator?
This works at least for other types of attribute you want to set to null.
Edit:
Just tried this using the OOB Function Evaluator on an attribute of type "Integer". Works.
Using FIM 2010 R2 4.1.3634.0.
- Edited by Leo Erlandsson 16 hours 51 minutes ago
Couldn't you just set the attribute to " " (space) using the OOB Function Evaluator?
This works at least for other types of attribute you want to set to null.
Edit:
Just tried this using the OOB Function Evaluator on an attribute of type "Integer". Works.
Using FIM 2010 R2 4.1.3634.0.
- Edited by Leo Erlandsson Monday, May 18, 2015 2:31 PM
- Marked as answer by 2xTsei 22 hours 14 minutes ago
Couldn't you just set the attribute to " " (space) using the OOB Function Evaluator?
This works at least for other types of attribute you want to set to null.
Edit:
Just tried this using the OOB Function Evaluator on an attribute of type "Integer". Works.
Using FIM 2010 R2 4.1.3634.0.
- Edited by Leo Erlandsson Monday, May 18, 2015 2:31 PM
- Marked as answer by 2xTsei Tuesday, May 19, 2015 9:12 AM
Couldn't you just set the attribute to " " (space) using the OOB Function Evaluator?
This works at least for other types of attribute you want to set to null.
Edit:
Just tried this using the OOB Function Evaluator on an attribute of type "Integer". Works.
Using FIM 2010 R2 4.1.3634.0.
- Edited by Leo Erlandsson Monday, May 18, 2015 2:31 PM
- Marked as answer by 2xTsei Tuesday, May 19, 2015 9:12 AM
Hi Soren,
By default there is no FIM direct way of setting a null value. You have to use a Powershell activity (or other) to Unset an attribute.
Try the below i used to unset the OTP email address. Not ideal but meets the needs....
Add-PSSnapin FimAutomation
$objID = $fimwf.TargetId.Guid
$ImportState = [Microsoft.ResourceManagement.Automation.ObjectModel.ImportState]
$importObject = New-Object Microsoft.ResourceManagement.Automation.ObjectModel.ImportObject
$importObject.ObjectType = "Person"
$importObject.TargetObjectIdentifier = $objID
$importObject.SourceObjectIdentifier = $objID
$importObject.State = $ImportState::Put
$importChange_OTP = New-Object Microsoft.ResourceManagement.Automation.ObjectModel.ImportChange
$importChange_OTP.Operation = 1
$importChange_OTP.AttributeName = "msidmOneTimePasswordEmailAddress"
$importChange_OTP.FullyResolved = 1
$importChange_OTP.Locale = "Invariant"
if ($importObject.Changes -eq $null)
{
$importObject.Changes = $importChange_OTP
}
else
{
$importObject.Changes += $importChange_OTP
}
$importObject | Import-FIMConfig -uri "http://localhost:5725"
Couldn't you just set the attribute to " " (space) using the OOB Function Evaluator?
This works at least for other types of attribute you want to set to null.
Edit:
Just tried this using the OOB Function Evaluator on an attribute of type "Integer". Works.
Using FIM 2010 R2 4.1.3634.0.
Hi
Yes, actually I can. I definately tested it and I couldn't set it it but now I can. Thanks! So actually there is now at many ways to do that! Thanks!
Couldn't you just set the attribute to " " (space) using the OOB Function Evaluator?
This works at least for other types of attribute you want to set to null.
Edit:
Just tried this using the OOB Function Evaluator on an attribute of type "Integer". Works.
Using FIM 2010 R2 4.1.3634.0.
Hi
Yes, actually I can. I definately tested it and I couldn't set it it but now I can. Thanks! So actually there is now at many ways to do that! Thanks!
Couldn't you just set the attribute to " " (space) using the OOB Function Evaluator?
This works at least for other types of attribute you want to set to null.
Edit:
Just tried this using the OOB Function Evaluator on an attribute of type "Integer". Works.
Using FIM 2010 R2 4.1.3634.0.
Hi
Yes, actually I can. I definately tested it and I couldn't set it it but now I can. Thanks! So actually there is now at many ways to do that! Thanks!