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
Ravi_SFDCRavi_SFDC 

Downloaded Trigge

HI,

User-added image

When we download the Trigger, how can we re-upload the trigger? Do correct me. 

Thanks & Regards
Ravi

 

Kai Herng LauKai Herng Lau
Hi Ravi,

I just do a quick test, when you save the trigger salesforce will automatic upload the code for you. Let me know if I'm not answering your question
Ravi_SFDCRavi_SFDC

HI Kai,

Example:

1. Now I have written a Trigger under Opportunity.
2. I have downloaded the trigger to my local drive.
3. I have deleted the written Trigger.
4. Now I want to upload the downloaded trigger.

Please suggest 

Thanks & Regards
Ravi.

Kai Herng LauKai Herng Lau
Hi Ravi,

If my understanding your situation correctly, you have already donwloaded the trigger code in your local mechine and you deleted the trigger in your salesforce dev org. If this is the case, what I can suggest to you is to go re-create the trigger back again. Go to setup and then find the correct object to create the trigger. 

If the trigger is developer from Prod you may need to create changeSet or using IDE to do it. Let me know if this help.

 
Ravi_SFDCRavi_SFDC
Thank you, Kai, for your valuable time. I am just trying to take some views whether we can upload the trigger once downloaded. Excluding the changeset process.