Skip to content

Create New Synapse Link Profile #537

Description

@benwebster-Janusintl

Is there some way, any way at all to create a new Azure Synapse Link using the functions from this module?

$hashtable = @{
name = "glblsttest2"
datalakefolder = "glblsttest2"
}
New-CrmRecord -conn $connection -EntityLogicalName 'synapselinkprofile' -Fields $hashtable

As a simple test example, I try to create a new CRM record using the above commands, but results in the below error. Am I completely off the trail here, or is there some way to provide the datalakefolder property in a format that the command will accept?

************ FaultException1 - Create : synapselinkprofile |=> Invalid value type for attribute: datalakefolder of
entity: synapselinkprofile, Expected Type: lookup, Actual Type: System.String
Invalid value type for attribute: datalakefolder of entity: synapselinkprofile, Expected Type: lookup, Actual Type:
System.String => Invalid value type for attribute: datalakefolder of entity: synapselinkprofile, Expected Type:
lookup, Actual Type: System.String[TerminalFailure] Failed to Execute Command - Create :
RequestID=074f9fcc-e71b-45af-a22d-5c1489427d33 : synapselinkprofile duration=00:00:01.2819665 ExceptionMessage =
Invalid value type for attribute: datalakefolder of entity: synapselinkprofile, Expected Type: lookup, Actual Type:
System.String
Invalid value type for attribute: datalakefolder of entity: synapselinkprofile, Expected Type: lookup, Actual Type:
System.String => Invalid value type for attribute: datalakefolder of entity: synapselinkprofile, Expected Type:
lookup, Actual Type: System.String
At C:\Users\ben.webster\OneDrive - Janus International
Group\Documents\WindowsPowerShell\Modules\Microsoft.Xrm.Data.Powershell\2.8.21\Microsoft.Xrm.Data.Powershell.psm1:440
char:9
+ throw LastCrmConnectorException($conn)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (************ Fa...: System.String:String) [], RuntimeException
+ FullyQualifiedErrorId : ************ FaultException1 - Create : synapselinkprofile |=> Invalid value type for a
ttribute: datalakefolder of entity: synapselinkprofile, Expected Type: lookup, Actual Type: System.String
Invalid value type for attribute: datalakefolder of entity: synapselinkprofile, Expected Type: lookup, Actual Type
: System.String => Invalid value type for attribute: datalakefolder of entity: synapselinkprofile, Expected Type:
lookup, Actual Type: System.String[TerminalFailure] Failed to Execute Command - Create : RequestID=074f9fcc-e71b-4
5af-a22d-5c1489427d33 : synapselinkprofile duration=00:00:01.2819665 ExceptionMessage = Invalid value type for att
ribute: datalakefolder of entity: synapselinkprofile, Expected Type: lookup, Actual Type: System.String
Invalid value type for attribute: datalakefolder of entity: synapselinkprofile, Expected Type: lookup, Actual Type
: System.String => Invalid value type for attribute: datalakefolder of entity: synapselinkprofile, Expected Type:
lookup, Actual Type: System.String

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions