< Back
New-SalesforceRecord
Post
NAME New-SalesforceRecord
SYNOPSIS
Creates a new Salesforce record of the specifed type.
SYNTAX
New-SalesforceRecord -ObjectType <String> -Values <Hashtable> -Connection <Hashtable> [<CommonParameters>]
DESCRIPTION
PARAMETERS
-ObjectType <String>
Specifies the type of object to be created. For example: Account.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Values <Hashtable>
Specifes filed values for the new record. For example:
@ {'Description'='My test accout';'Name'='Test Account';'Type'='Customer';'}
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Connection <Hashtable>
Specifies connection information to the Salesforce site. For example:
@{
ServerUrl='<Salesforce Site URL>';
LoginUrl='https://login.salesforce.com/services/oauth2/token';
Username='<user>';
Password='<password>';
SecurityToken='<user security token>';
ClientId='<client ID (consumer key) for the Salesforce connected app>';
ClientSecret='<client secret (consumer secret) for the Salesforce connected app>';
LicenseKey='<license key>';
SessionTimeoutMinutes=15;
SkipCertificateValidation=$false
}
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
System.String
Record ID of the newly created record.
RELATED LINKS
SYNOPSIS
Creates a new Salesforce record of the specifed type.
SYNTAX
New-SalesforceRecord -ObjectType <String> -Values <Hashtable> -Connection <Hashtable> [<CommonParameters>]
DESCRIPTION
PARAMETERS
-ObjectType <String>
Specifies the type of object to be created. For example: Account.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Values <Hashtable>
Specifes filed values for the new record. For example:
@ {'Description'='My test accout';'Name'='Test Account';'Type'='Customer';'}
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Connection <Hashtable>
Specifies connection information to the Salesforce site. For example:
@{
ServerUrl='<Salesforce Site URL>';
LoginUrl='https://login.salesforce.com/services/oauth2/token';
Username='<user>';
Password='<password>';
SecurityToken='<user security token>';
ClientId='<client ID (consumer key) for the Salesforce connected app>';
ClientSecret='<client secret (consumer secret) for the Salesforce connected app>';
LicenseKey='<license key>';
SessionTimeoutMinutes=15;
SkipCertificateValidation=$false
}
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
System.String
Record ID of the newly created record.
RELATED LINKS