Our Community is in read-only mode until April 8th, learn more here. You can still search existing threads or get help via Dropbox Support, the Dropbox Help Center, or Learn.
Forum Discussion
rostyslavpopov
1 year agoExplorer | Level 4
Missing parameter: client_id for lwc
Im working on a lwc where id like to embed a signing process in iframe, I was able to successfully retrieve sign URL, but when I try to use it on iframe I got following error, at which step do I need...
eappsiadvancenow123
1 year agoNew member | Level 1
DB-DesI'm passing the following request but still I'm getting the same error:
{"client_id":"MY_CLIENT_ID","template_ids":["xyz"],"signers":"[{"role":"Lead","name":"Test Template","email_address":"test@mycompany.com"}]"}
the above request has template_ids in JSON array format only but still the API response is {"error":{"error_msg":"No template_id or template_ids specified","error_path":"template_id","error_name":"bad_request"}}
rostyslavpopov
1 year agoExplorer | Level 4
ur not passing the email template
if your endpoint is:
String apiUrl = 'https://api.hellosign.com/v3/signature_request/create_embedded_with_template';Then you should paste your template id which you can get on hellosign.
I wasn't able to use an apex class that I can later serialize and use as request body, It would throw same error as you shown for me, not sure why because template id was in there, here's what i used:
String requestBody = 'client_id=' + EncodingUtil.urlEncode(clientId, 'UTF-8') + '&template_ids[]=' + EncodingUtil.urlEncode(templateId, 'UTF-8') + '&subject=' + EncodingUtil.urlEncode('Purchase Order', 'UTF-8') + '&message=' + EncodingUtil.urlEncode('Glad we could come to an agreement.', 'UTF-8') + '&signers[0][role]=' + EncodingUtil.urlEncode('Lead.Customer', 'UTF-8') + '&signers[0][name]=' + EncodingUtil.urlEncode(Lead.Name, 'UTF-8') + '&signers[0][email_address]=' + EncodingUtil.urlEncode(email, 'UTF-8');This is annoying to add new fields into, as it would be in form of:
if (!String.isEmpty(lead.Email)) { requestBody += '&custom_fields[0][name]=Lead.Email&custom_fields[0][value]=' + EncodingUtil.urlEncode(lead.Email, 'UTF-8'); } if (!String.isEmpty(lead.Company)) { requestBody += '&custom_fields[1][name]=Lead.Company&custom_fields[1][value]=' + EncodingUtil.urlEncode(lead.Company, 'UTF-8'); }etc, but i believe you can try to use another class for your custom fields and then add its serialized part to the body from previous sample, i think it would be a more convenient approach although i didn't try it.
Are you implementing this for apex lwc? If so you can reach out to me through email and ill be able to provide answers with more details!
About Dropbox Sign API
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!