Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics

Is it possible to pass attachments to eOriginal?

 

We need to push our signed documents into an eOriginal vault. The instructions say to push it through a "data" field in the API.

Question #1: Location and Procedure

I have the code working that sets the "sender" when the package is not in-person. But this code doesn't seem to work with in-person.

I'm having an issue when sending the pdf to OneSpan. This is the error from the dev console

"String length exceeds maximum: 6000000"

I'm wondering if the APEX SDK has the ability to create a sender. I see that some of the other SDKs can.

 

Replies Created

Reply to: Send File not in Static Resources

0 votes

Thanks Duo,

It does appear to the template I was sending up. Can I send up a Word Doc, or does it have to be a PDF?

If I can pass a word doc, can I pass variables to the word doc? I see where I can with a PDF.

The document is a letter for the client to sign. I can change it to a PDF but this is constantly being updated and wanted to be able to update it a lot.


Reply to: Send File not in Static Resources

0 votes

Oh wait, 

The status of the package was sent as "Sent". The test word doc I was sending up didn't have any signature tags in it yet which was causing the error. I found all these packages in the drafts folder. 

Question: can I send variables to a word doc? I do see where I can with a PDF. To clarify, I want to start the letter with "HI James, ...." in which James is inserted and not some text field.


Reply to: Send File not in Static Resources

0 votes

Thanks for your help.

What I'm trying to accomplish is to use MS Word and insert a small amount of data from Salesforce. I am successful in inserting text using PDF but is there a way to use a Word document? 

Injecting Field Values | OneSpan Community Platform

As of now, it appears that I'm using a "Label" but I can't find any example of using it online and it's not pulling over the data.

------- Class ------

OneSpanAPIObjects.Field field1 = new OneSpanAPIObjects.Field();
field1.name = 'Text1';
field1.value = '200 E MAIN ST, PHOENIX AZ, 85123 USA';

OneSpanAPIObjects.Data data_x = new OneSpanAPIObjects.Data();
document.data = data_x;
document.fields = new List<OneSpanAPIObjects.Field>{field1};
sdk.createDocuments(packageId, document, doc);
pkg.status = OneSpanAPIObjects.PackageStatus.DRAFT;
sdk.updatePackage(pkg, packageId);

------- IN PDF ------

field name "Text1" - this works just fine.

------ IN WORD -----

{{esl_Text1:Signer1:Label}}       //This is the current extraction text. It does create a Label box but does not include the text in there (according to the preview).

 

 


Subscriptions

Topics Replies Freshness Views Users

Is it possible to pass attachments to eOriginal?

 

1 2 months 2 weeks ago 16
Profile picture for user Duo_Liang

We need to push our signed documents into an eOriginal vault. The instructions say to push it through a "data" field in the API.

Question #1: Location and Procedure

4 3 months 2 weeks ago 44
Profile picture for user Duo_Liang

We are working on creating Onespan transactions in Salesforce and have written out some Apex Trigger code to assist with the process.

7 2 months ago 243
Profile picture for user Duo_Liang

I have the code working that sets the "sender" when the package is not in-person. But this code doesn't seem to work with in-person.

2 3 months 3 weeks ago 27
Profile picture for user Duo_Liang

I'm having an issue when sending the pdf to OneSpan. This is the error from the dev console

"String length exceeds maximum: 6000000"

1 5 months 4 weeks ago 533
Profile picture for user Duo_Liang

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.