A Python Command Line Tool to Upgrade Apex Wrapper Salesforce Metadata API Version
Автор: JM Cloud Services
Загружено: 2024-08-12
Просмотров: 197
Apex Wrapper Salesforce Metadata API provides a powerful solution for generating Salesforce metadata dynamically within Apex. However, the version contained in this package is currently 42.0. To leverage the latest metadata version, it is necessary to upgrade the Apex wrapper. I followed the detailed instructions for doing at this link. but when generating apex from metadata file, I got the below due to the resulting classes exceed the 1 million character limit on Apex classes.
After conducting some research, it appears that the primary workaround for the issue of large metadata file sizes is to either split the metadata into multiple smaller files or selectively extract only the necessary metadata types into a separate file. To facilitate this process, I created a Python tool that allows me to extract necessary metadata types and patch the resulting class with the latest API version on my local machine. Then, I can save it in a Salesforce org.
0:00 Installation
1:51 Download Metadata wsdl file
2:34 Command for extracting metadata components
3:23 Generate and Download Apex Class
4:32 Generate Extension mapping file and patch generated Apex Class
7:10 Generate unit test apex class
Repo: https://rb.gy/irqrqi
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: