Cloning a Layout
Thursday, September 15, 2016 at 05:47amHi,
I'm having some issues when trying to clone/copy an existing layout in order to modify the signatures without affecting the original layout. I've attempted to call createLayout method in layout service on the original to recreate, but while this does create a copy, it also deletes the original layout. I currently have a workaround by creating a new package and copying over all the data from the original layout, but feels like there's a better way to accomplish this. Is there a recommended way to copy layouts?
Thanks in advance,
-Mitch
Reply to: Cloning a Layout
Thursday, September 15, 2016 at 08:10pmDocumentPackage myLayout = eslClient.getLayoutService().getLayouts(Direction.DESCENDING, new PageRequest(1,50)).get(0); //Just grabbing a layout myLayout.setName("Some Different Name"); //this is the step that is necessary to not overwrite the existing one //TODO: Whatever changes you want to make eslClient.getLayoutService().createLayout(myLayout);Reply to: Cloning a Layout
Thursday, September 15, 2016 at 11:18amReply to: Cloning a Layout
Monday, September 19, 2016 at 11:05amReply to: Cloning a Layout
Monday, September 19, 2016 at 01:22pmReply to: Cloning a Layout
Tuesday, December 20, 2016 at 04:10amCaused by: com.silanis.esl.sdk.internal.EslServerException: Could not create layout. Exception: HTTP POST on URI https://sandbox.esignlive.com/api/layouts resulted in response with status code: [500, Internal Server Error]. Optional details: {"messageKey":"error.internal.default","technical":"Multiple entries with same key: MF84tvhX2NsV=com.silanis.esl.api.model.Field@31a655ed and MF84tvhX2NsV=com.silanis.esl.api.model.Field@18c0f02f","code":500,"message":"Unexpected error. We apologize for any inconvenience this may have caused you, please try again. If the problem persists, please contact our support team.","name":"Unhandled Server Error"} at com.silanis.esl.sdk.service.LayoutService.createLayout(LayoutService.java:55)I can provide the API Key and layout id being used if needed Thanks in advance, MitchReply to: Cloning a Layout
Tuesday, December 20, 2016 at 04:39amReply to: Cloning a Layout
Tuesday, December 20, 2016 at 05:01amReply to: Cloning a Layout
Tuesday, December 20, 2016 at 05:11amReply to: Cloning a Layout
Tuesday, December 20, 2016 at 05:16amReply to: Cloning a Layout
Tuesday, December 20, 2016 at 06:07am