kodeybranson

Creating a Package

0 votes
First off, this is a very welcome addition to the integration options available. I've been struggling using the REST API directly from my Force.com app. Are there any examples on how to create a simple package, like there are with the other SDKs? If we could get an example of creating a package with documents and adding a document to an existing package, that'd be great. Thanks, KB

Approved Answer

Reply to: Creating a Package

0 votes
Hi Kodey, Yes, we have examples on how to create packages with the Apex SDK. You do have the option to create them with and without documents. In order to create a package without any documents, you can use the createPackage() method in the ESignLiveSDK class. You'll need to pass a package object as the parameter. Take a look at the ESignLiveExamples.cls class (line 14) for an example method. To create a package with a document, you can use the createPackage() method as well, however, you'll need to include a second argument containing a map of the documents to include in the package. You can see an example of this in the ESignLiveExamples.cls class at line 38. For more info, please take a look at our wiki. Thanks! Rob Martinez hirekadence.com
Rob Martinez www.hirekadence.com

Reply to: Creating a Package

0 votes
Awesome! This will be very helpful. Thank you! KB

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off