Highlighted

Apex Send Agreements with different Templates ID, And RunTIme Variables for Agreement Templates

New Here ,
Jul 02, 2020

Copy link to clipboard

Copied

Hi All,

 

We are trying to set Run Time variables  for a Template and send Agreements in Salesforce Apex.

It is working in a batch for a single template Id. 

However if we make a list of Agreements ( using Load ) but use multiple templates, it is not working.

Is there a limitation on using different template Ids for different agreement records in Apex?

 

Also, in writing Test class, we are not sure how to populate the runtime variable for the Agreement Template.

We can create Agreement Template records in test class, but not sure how to populate Runtime variables. 

Should we create before hand the templates and use SeeAllData - true in Test class?

 

Thanks,

CK

Topics

Send documents

Views

59

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Apex Send Agreements with different Templates ID, And RunTIme Variables for Agreement Templates

New Here ,
Jul 02, 2020

Copy link to clipboard

Copied

Hi All,

 

We are trying to set Run Time variables  for a Template and send Agreements in Salesforce Apex.

It is working in a batch for a single template Id. 

However if we make a list of Agreements ( using Load ) but use multiple templates, it is not working.

Is there a limitation on using different template Ids for different agreement records in Apex?

 

Also, in writing Test class, we are not sure how to populate the runtime variable for the Agreement Template.

We can create Agreement Template records in test class, but not sure how to populate Runtime variables. 

Should we create before hand the templates and use SeeAllData - true in Test class?

 

Thanks,

CK

Topics

Send documents

Views

60

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
New Here ,
Jul 06, 2020

Copy link to clipboard

Copied

Also, i wanted to add some technical error notes in the case of Multiple Templates :

Class.echosign_dev1.AgreementTemplateProcessor.parseDocumentLibraries: line 339, column 1

Class.echosign_dev1.AgreementTemplateProcessor.loadAttachmentTemplates: line 730, column 1

Class.echosign_dev1.AgreementTemplateProcessor.load: line 90, column 1

Class.echosign_dev1.AgreementTemplateService.load: line 33, column 1

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...