function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lakshya KanchanLakshya Kanchan 

Data update to and from a deprecated field of a packaged object using SOAP API.

Hi

I have a scenario wherein I have a managed package installed.
I need to transfer data from a deprecated field of a packaged object (Deal) to another field to the same packaged object (Deal) and vice versa in the same org.

Q1) How can we implement the scenario using SOAP API?
Q2) Are there any reference docs available for the implementing the SOAP API?

NOTE:
1. The source and destination orgs are same here.

Regards,
Lakshya
SubratSubrat (Salesforce Developers) 
Hello Lakshya ,

For transferring data from a deprecated field of a packaged object to another field in the same packaged object using the SOAP API, you can follow these steps:

Create a Salesforce connected app: https://help.salesforce.com/s/articleView?id=sf.connected_app_create.htm&type=5 (https://help.salesforce.com/s/articleView?id=sf.connected_app_create.htm&type=5)

Generate a security token: To use the SOAP API, you need to generate a security token for your Salesforce user. To generate a security token, go to Setup > My Personal Information > Reset My Security Token, and follow the prompts to generate a new token.

Generate a WSDL file: You need to generate a WSDL file for the SOAP API to access the Salesforce objects and fields. To generate a WSDL file, go to Setup > Integrations > API > Generate Enterprise WSDL, and download the file.

Create a SOAP client and 
Use the SOAP API to update records: https://blog.cloudanalogy.com/how-to-use-soap-api-in-salesforce/

Here are some reference docs for implementing the SOAP API:

Salesforce SOAP API Developer Guide:  https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_quickstart_intro.htm

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_quickstart_steps.htm


Salesforce SOAP API Developer Cheat Sheet: https://res.cloudinary.com/hy4kyit2a/image/upload/SF_soap_api_cheatsheet.pdf

Salesforce SOAP API Trailhead module: https://trailhead.salesforce.com/content/learn/modules/api_basics/api_basics_soap 

If the above information helps , please mark this as Best Answer.
Thank you.