Hi Folks,
I am trying to import a single Workflow from Dev to UAT env. Below is the code snippet I used to export the WF into a xml file.
$WorkflowsInFIM = Export-FIMConfig -Uri $URI OnlyBaseResources -CustomConfig "/WorkflowDefinition[DisplayName='ABC']"
$WorkflowsInFIM | ConvertFrom-FIMResource -file E:\WorkSpaces\MyFolder\Sample.xml
Now when I try importing it, using the CommitChanges.ps1(From the TechNet blog), I get the below exception
Import-FIMConfig : The input object cannot be bound to any parameters for the command either because the
command does not take pipeline input or the input and its properties do not match any of the parameters that
take pipeline input.
At line:15 char:29
+ $undoneImports = $imports | Import-FIMConfig
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Microsoft.Resou...el.ExportObject:PSObject) [Import-FIMConfig],
ParameterBindingException
+ FullyQualifiedErrorId : InputObjectNotBound,Microsoft.ResourceManagement.Automation.ImportConfig
Can someone guide me here. Also is this the correct way to export and import a single Workflow from one env. to another or is there any other approach. Please guide.
Thanks in Advance.