CreateSObject
Creates a sobject to Salesforce.
Task version: 3.0.0
Required Frends version: 5.5+
Required .NET version: 6.0
Compatible Agents: Crossplatform
Source code: https://github.com/FrendsPlatform/Frends.Salesforce/tree/main/Frends.Salesforce.CreateSObject
Task Parameters
SObjectAsJson : String
SObject structure as json.
Default: -
Example: { "Name": "ExampleName" }
SObjectType : String
SObject type. Can be Account, Case, CustomObject, CustomSettings, CustomMetadata, etc...
Default: Account
Example: Account
AuthenticationMethod : AuthenticationMethod
Authentication method used to get a Salesforce access token.
Possible values:
AccessToken: Authentication method used to get a Salesforce access token.OAuth2WithPassword: Authentication method used to get a Salesforce access token.OAuth2WithClientCredentials: Authentication method used to get a Salesforce access token.
Default: 1
Example: UsernamePasswordOAuth
InstanceUrl : String
Salesforce instance URL. Required when using the AccessToken authentication method.
Default: -
Example: https://mydomain.my.salesforce.com
AuthUrl : String
Url used to authenticate to Salesforce with the OAuth2 password flow.
Default: https://login.salesforce.com
Example: https://mydomain.my.salesforce.com
🗝AccessToken : String
Reusable Salesforce access token. Required when using the AccessToken authentication method.
Default: -
Example: 00Dxx0000000001!AQ8AQExampleToken
ClientId : String
OAuth connected app client ID.
Default: -
Example: 3MVG9d8..ExampleClientId
🗝ClientSecret : String
OAuth connected app client secret.
Default: -
Example: ExampleClientSecret
Username : String
Salesforce username.
Default: -
Example: integration.user@example.com
🗝Password : String
Salesforce password.
Default: -
Example: ExamplePassword
🗝SecurityToken : String
Salesforce security token appended to the password for the username-password OAuth flow when required.
Default: -
Example: ExampleSecurityToken
ApiVersion : String
The API version to use when making requests to Salesforce.
If left empty, the default value is v61.0.
Default: v61.0
Example: -
ReturnAccessToken : Boolean
Also return access token which is fetched during authentication?
Default: False
Example: true
Task Result
Body : Object
Body of the response.
Example: {"id": "abcdefghijkl123456789", "success": true, "errors": []}
RequestIsSuccessful : Boolean
Was the request successful?
Example: true
ErrorException : Exception
Exception that was thrown by the server.
Example: System.Net.Http.HttpRequestException
ErrorMessage : String
Error message from the server.
Example: System.Net.Http.HttpRequestException: Request failed with status code Unauthorized
Token : String
OAuth2 access token.
Example: abcdefghjklmn123456789
Task Changelog
Changelog for Task Frends.Salesforce.CreateSObject.
[3.0.0] - 2026-04-01
Changed
[Breaking Change] Move parameters related to Connection to new Connection parameter.
Remove the empty Options parameter.
Improve validation of input parameters.
Added
Added a new authentication method for authentication by OAuth2 with client credentials
[2.2.0] - 2025-12-12
Changed
Change throwing exception logic
[2.1.0] - 2025-03-18
Changed
Update packages: Newtonsoft.Json 13.0.1 -> 13.0.3 RestSharp 107.3.0 -> 112.1.0 System.ComponentModel.Annotations 4.7.0 -> 5.0.0 coverlet.collector 3.1.0 -> 6.0.4 dotenv.net 3.2.0 -> 3.2.1 Microsoft.NET.Test.Sdk 16.7.0 -> 17.13.0 MSTest.TestAdapter 2.1.2 -> 3.8.3 MSTest.TestFramework 2.1.2 -> 3.8.3 nunit 3.12.0 -> 4.3.2 NUnit3TestAdapter 3.17.0 -> 5.0.0
[2.0.0] - 2024-08-19
Added
Salesforce API version number can now be specified in input.
[1.1.0] - 2024-08-28
Changed
Documentation link now links to a correct page in Frends Tasks.
[1.0.1] - 2022-05-27
Changed
Fix for issue with referencing result-object in other elements.
[1.0.0] - 2022-05-06
Added
Initial implementation of Frends.Salesforce.CreateSObject.
Last updated
Was this helpful?

