Account
Earned badges
Achievement: Latest Unlocked
Topics Started
Replies
Preferences
Topic Started
Replies Created
Reply to: Hi Shashank Verma, Try…
Thursday, May 20, 2021 at 02:00amHi Liang,
We have tried the above step and getting the below error:
GET https://test123.my.salesforce.com/services/apexrest/oss/callback
GET /services/apexrest/oss/callback HTTP/1.1
Accept: application/json
Postman-Token: { }
Cookie: BrowserId= {Browser Id}
Referer: https://test123.lightning.force.com/services/apexrest/oss/callback
Host: test123.my.salesforce.com
{"@class":"com.silanis.esl.packages.event.ESLProcessEvent","name":"PACKAGE_COMPLETE","sessionUser":"18EZDL44xgsX","packageId":"{ }","message":null,"documentId":null,"createdDate":"2018-07-18T18:19:19.356Z"}
HTTP/1.1 401 Unauthorized
Date: Thu, 20 May 2021 06:35:38 GMT
Strict-Transport-Security: max-age=31536002; includeSubDomains
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Robots-Tag: none
Cache-Control: no-cache,must-revalidate,max-age=0,no-store,private
WWW-Authenticate: Token
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
[{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}]
Can you please let us know what will be the issue and also we are not sure about the sessionUser you have mentioned in the payload.
Regards,
Shashank Verma
Reply to: Hi Shashank Verma, The…
Thursday, May 20, 2021 at 10:26amHi Liang,
We have updated the pdf and now I am getting the signer2 signature block. But, now we are have created the field from the code itself and then try to show on the pdf.
But we are getting the error. For your reference I have attached the screenshot of the error and also attaching the example code as well as pdf file.
Can you please check the pdf file for which I have updated the First Name syntax. Can you please let us know which syntax we need to refer on the pdf to show field box?
Regards,
Shashank Verma
Reply to: Hi Shashank Verma, Few…
Thursday, May 20, 2021 at 10:42amHi Liang,
I have did the same steps you have mentioned and sends the POST call but with the POST request I also got the GET response. Below, are the POST call details
POST / HTTP/1.1
Content-Type: application/json
Accept: application/json
Authorization: Bearer { }
Postman-Token: { }
Host: test123.lightning.force.com
Content-Length: 231
Cookie: BrowserId={ }
HTTP/1.1 302
Date: Thu, 20 May 2021 15:37:10 GMT
Strict-Transport-Security: max-age=31536001; includeSubDomains
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Content-Security-Policy: upgrade-insecure-requests
X-Robots-Tag: none
Cache-Control: no-cache,must-revalidate,max-age=0,no-store,private
Location: https://test123.my.salesforce.com/services/apexrest/oss/callback
Content-Length: 0
GET response
GET /services/apexrest/oss/callback HTTP/1.1
Accept: application/json
Postman-Token: { }
Cookie: BrowserId={ }
Referer: https://test123.force.com/services/apexrest/oss/callback
Host: test123.my.salesforce.com
{"@class":"com.silanis.esl.packages.event.ESLProcessEvent","name":"PACKAGE_COMPLETE","sessionUser":"18EZDL44xgsX","packageId":"{ }=","message":null,"documentId":null,"createdDate":"2018-07-18T18:19:19.356Z"}
HTTP/1.1 401 Unauthorized
Date: Thu, 20 May 2021 15:37:11 GMT
Strict-Transport-Security: max-age=31536002; includeSubDomains
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Robots-Tag: none
Cache-Control: no-cache,must-revalidate,max-age=0,no-store,private
WWW-Authenticate: Token
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
[{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}]
Can you please check what will be the issue.
Regards,
Shashank Verma
Reply to: Hi Shashank Verma, From…
Thursday, May 20, 2021 at 12:51pmHi Duo,
I went through the blog but the pdf i.e. used there is not available. So, can you please let me know how to use the tag on the pdf if we use the below code:
OneSpanAPIObjects.Field fieldClient3 = new OneSpanAPIObjects.Field();
fieldClient3.extract = true;
fieldClient3.name = 'first_name'; //match pdf field property name
fieldClient3.type = 'INPUT';
fieldClient3.subtype = 'TEXTFIELD';
Or do I have to put the 'first_name' in the pdf where I want the field box?
Regards,
Shashank Verma
Reply to: Here you are. Simply name…
Thursday, May 20, 2021 at 01:24pmHi Duo,
Thank you for quick response!!!
What about text tags, we use earlier as {esl:signer1:textfield:size(200,50)}}. So, how we gonna set the name of this field so if we get the values back in salesforce then it is easy to extracting and also if we want to set some value in that text tag from apex, can it be possible?
Regards,
Shashank Verma
Subscriptions
Topics | Replies | Freshness | Views | Users |
---|---|---|---|---|
27 | 2 years 10 months ago | 496 |