For the complete documentation index, see llms.txt. This page is also available as Markdown.

DeleteSObject

Deletes a SObject from Salesforce.

Task version: 3.0.0

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

SObjectId : String

SObject id.

Default: - Example: abcdefghijkl123456789

SObjectType : String

SObject type. Can be Account, Case, CustomObject, CustomSettings, CustomMetadata, etc...

Default: Account Example: Account

Name
Description

AuthenticationMethod : AuthenticationMethod

Authentication method used to get a Salesforce access token.

Possible values:

  • AccessToken: Authenticate with an access token.

  • OAuth2WithPassword: Authenticate by providing required information to fetch OAuth2 access token.

  • OAuth2WithClientCredentials: Authenticate using OAuth2 client credentials grant flow.

Default: OAuth2WithPassword 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

ThrowAnErrorIfNotFound : Boolean

Set whether process will throw an error if targeted id can not be found from Salesforce.

Default: False Example: true

Task Result

Name
Description

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.DeleteSObject.

[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-09

Added

  • Initial implementation of Frends.Salesforce.DeleteSObject.

Last updated

Was this helpful?