Chris | Posts: 12

Difference between CreatePackage and CreatePackageOneStep

0 votes
Hello, I'm trying to understand the difference between CreatePackage and CreatePackageOneStep in the .Net SDK. I've come across examples where each is being used but there doesn't appear to be a difference in how they are being used. What is the difference between these two?

Approved Answer
mwilliams | Posts: 957

Reply to: Difference between CreatePackage and CreatePackageOneStep

0 votes
Looking into the SDK source, it appears that "createPackage" calls the packageService and creates the package, then, uploads the documents afterwards, to the created package. With "createPackageOneStep", the documents are prepared to be uploaded, then, passed to the packageService along with the APIPackage where they are passed through one multipart post call to create the package and upload the documents all in one step. Hope this helps.

Chris | Posts: 12

Reply to: Difference between CreatePackage and CreatePackageOneStep

0 votes
Thank you, that is helpful. So it seems CreatePackageOneStep will be the most efficient method and should be preferred above the other, if documents are included when the package is created.

mwilliams | Posts: 957

Reply to: Difference between CreatePackage and CreatePackageOneStep

0 votes
I will note, there is a warning with the OneStep method: WARNING: DOES NOT WORK WHEN SENDER HAS A SIGNATURE

Chris | Posts: 12

Reply to: Difference between CreatePackage and CreatePackageOneStep

0 votes
Good to know. So if I understand correctly, if the API key used to create the package is not not associated to a signer of a document in the package then the package should be created as expected.

mwilliams | Posts: 957

Reply to: Difference between CreatePackage and CreatePackageOneStep

0 votes
I haven't tried it, yet, but that's how I read it, as well. Let me know if you have issues, I'll look into it further.

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