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
sara .netsara .net 

using MetadataAPI in C#

Hi,

I wanted to create a customobject programmatically, so I thought of using Metadata API. I downloaded the Metadata API WSDL and added web reference to the WSDL in my C# application. I was able to construct the customObject with all the values , but not able to figure out the right method for pushing the customObject to the SF. I read the API manual and it says to use "Create()" method and I can see an sample Java code as well, but I am unable to locate this "Create()" method in the proxy class generated by visual studio. Anyone faced this kind of issue or does anyone knows any alternative solution for this Issue.

 

Regards

Sara

SuperfellSuperfell
http://www.pocketsoap.com/weblog/2008/01/1803.html has a sample for .NET 2.0
sara .netsara .net
Thanks Simon, sample Code was very useful. Do you have an sample code for using the Declarative metadata API's like "Deploy()". If you have the sample of the "Zip" file which is used as input parameter for "deploy()" method then please provide the details.
SuperfellSuperfell
You can use the retrieve method to get a zip for an existing metadata item. that would be a good starting point.