HanyuChen | Posts: 10

PackageBuilder in .net sdk

0 votes
Hello, Is there a way to update package builder after package is build? There's no method found in the SDK. Please advise. Thanks so much.

Duo_Liang | Posts: 3776

Reply to: PackageBuilder in .net sdk

0 votes
Hello there, Once Package was built, it can't be reverted to PackageBuilder. If you were trying to update package level attributes, like expiry date or package description, etc, you could directly change package object and then call the .UpdatePackage() function:
            
pkg1.ExpiryDate = DateTime.Today.AddDays(15);
eslClient.UpdatePackage(pkg1.Id,pkg1);
If you want to update other bit of metadata other than package level attributes, find the related service class and call the update function there instead:
eslClient.ApprovalService.UpdateApprovals(....);
Hope this could help! Duo

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