I am trying to publish/deploy a workflow via Powershell which contains the Action "Request Data".
The problem is that those actions dont select the content types which are requiered for this action. They are just empty, but the content types exist. If I import the workflow manually, the contenty types are added correctly with all fields. But if I import / Deploy the workflow via Powershell, the content types (which are already existing, ofcourse) will not be added and the Action "Request Data" throws the warning "Content Type cannot be blank".
Any ideas, why the content types will not be added to the Action?
I am using this command:
NWAdmin.exe -o DeployWorkflow -workflowName "AnfragenWorkflow" -nwfFile $pathNintexWorkflowAnfragen -siteUrl $siteCollectionUrl -targetList "Anfragen" -saveIfCannotPublish -overwrite