Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 2.27 KB

sign_templates.md

File metadata and controls

51 lines (36 loc) · 2.27 KB

Sign Templates

Box Sign enables you to create templates so you can automatically add the same fields and formatting to requests for signature. With templates, you don't need to repetitively add the same fields to each request every time you send a new document for signature.

Making and testing a template takes a few minutes, but when done it makes working with Box Sign easier and faster.

Get All Sign Templates

Calling the static getAll(BoxAPIConnection api) will return an iterable that will page through all the Sign Templates.

The static getAll(BoxAPIConnection api, int limit) method offers limit parameter. The limit parameter specifies the maximum number of items to be returned in a single response.

Iterable<BoxSignTemplate.Info> signTemplates = BoxSignTemplate.getAll(api);
for (BoxSignTemplate.Info signTemplateInfo : signTemplates) {
	// Do something with each `signTemplateInfo`.
}

Get Sign Template by ID

Calling getInfo() will return a BoxSignTemplate.Info object containing information about the Sign Template.

BoxSignTemplate signTemplate = new BoxSignTemplate(api, id);
BoxSignTemplate.Info signTemplateInfo = signTemplate.getInfo();