Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Deploy and Retrieve Apex Classes to an org #25

Open
LeviticusNelson opened this issue Jul 3, 2022 · 2 comments
Open

Comments

@LeviticusNelson
Copy link

The way that I think that deploy could be done is to:

  1. compile the files into base64
  2. put the encoded base64 string into a package.xml file
  3. zip the file
  4. POST /services/data/vXX.X/metadata/deployRequest

Once the deploy feature is complete it should be pretty trivial to retrieve.

References:
Deploying and Retrieving Metadata with the Zip File
Deploy to Org using SOAP API
Metadata for Apex Classes

@tzmfreedom
Copy link
Owner

Thank you for your feature request.
I'm glad to have the opportunity to consider new features.

There is several deployment tool for salesforce, for example SFDX, JSforce.
I'd like to understand the motivation to add deployment feature for rustforce and the current issue for their deployment tool.

@LeviticusNelson
Copy link
Author

LeviticusNelson commented Jul 5, 2022

My reasoning for implementing this feature would be to have an alternative development tool that would have the speed and safety of rust. I use SFDX as my main development tool and one of the main bottlenecks is the speed at which it operates. Seeing that the REST API alone reduces the time for certain requests, my theory that implementing a tooling API in rust using the REST API would dramatically increase the deployment process.

Another thing is that I am implementing an SFDX-like TUI in rust and it would be nice to have a crate that has this feature implemented since this crate already implements the client connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants