Register
Submit a solution
The challenge is finished.

Challenge Overview

Details
To perform deploy/destructive metadata operation through metadata service, we have to pass a zip file that consists of package.xml file and metadata definitions that are to be deployed (Metadata definition can reside in sub folders).
So your task is to build a heroku service that returns a zip file. The service will take following input:
1. File path. For example "reports/Custom_Marketing/Revenue_Report.report"
2. File content. This is nothing but contents for the file specified in #1
The response of this service should be a zip file containing files specified in the parameters (Please note that one or more files can be zipped. So make sure that heroku service should not be restricted to take only 1 file as a parameter).��
��
Example:
Input 1
  • File path: "reports/Custom_Marketing/Revenue_Report.report"
  • File Content: <Any XML data>
Input 2
  • File path: ���package.xml���
  • File Content: <Look below for sample package.xml data>
��
Output:
The structure of zip file as per example defined above should be
�� �� src.zip
�� ����- reports (folder)
�� ����- Custom_Marketing (sub folder of reports folder)
�� ����- Revenu.report (file residing in reports/Custom_Marketing folder)
�� ����- package.xml (xml file)
�� ��
We already have a heroku service in place that takes a zip file and extracts a specific file(http://www.cloudspokes.com/challenges/2471). Here is the link to the solution developed by soe: http://bit.ly/cs2471-soe-video
This challenge is building a reverse of it
��
��
Sample package.xml:
<?xml version="1.0" encoding="UTF-8"?>
�� �� <Package xmlns="http://soap.sforce.com/2006/04/metadata">
�� �� <types>
�� ����<members>MyCustomObject__c</members>
�� ����<name>CustomObject</name>
�� �� </types>
</Package>

Review style

Final Review

Community Review Board

Approval

User Sign-Off

ID: 30037766