Answers.Body: <p>Some options:</p>
  <p>1 Make a message template with the url and include tokens for the custom fields, e.g. <code>{contact.custom_27}</code> (use the tokens dropdown when composing the template to see them).</p>
  <p>2(a) Install civirules. Get it to trigger on new contact and send you an email using that message template. Or I can't remember if it can create an activity with specific details but if so you could get it to do that.</p>
  <p>OR</p>
  <p>2(b) After creating the contact, choose print/merge document and use your message template. Click preview or save. The pdf will contain your link. If you click save the pdf will be saved in an activity. Or instead of print/merge you could send an email using your template.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-12-19T09:56:39.873Z
Answers.Text: But is there a way to make the link it generated be a button on the contact screen rather than in an activity?
Answers.UserDisplayName: Dan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-12-06T19:22:19.557Z
Answers.LastActivityDate: 2024-12-06T19:22:19.557Z
Answers.UserDisplayName: Demerit
Body: <p>I am trying to integrate 2 prducts, but im not sure on how to do it.
  when a new contact is added i would like for a button/link to go to another page, which will then generate a digital pass using the URL.
  this URL would be <a href="https://example.com/integration/createpass/c317b438-81fb-4015-a212-fa9609c11e16?membershipno=Value%20for%20membershipno&amp;name=Value%20for%20name&amp;DOB=Value%20for%20DOB&amp;CountyOffice=Value%20for%20CountyOffice&amp;ADName=Value%20for%20ADName&amp;ADDOB=Value%20for%20ADDOB&amp;ADColour=Value%20for%20ADColour&amp;ADCHIP=Value%20for%20ADCHIP&amp;hearing=Value%20for%20hearing&amp;bbd=Value%20for%20bbd&amp;non-verbal=Value%20for%20non-verbal&amp;Mobility=Value%20for%20Mobility&amp;medical%20alert=Value%20for%20medical%20alert&amp;invisible-disabilities=Value%20for%20invisible-disabilities&amp;training=Value%20for%20training&amp;expirationDate=2025-01-01%2015%3A00" rel="nofollow noreferrer">https://example.com/integration/createpass/c317b438-81fb-4015-a212-fa9609c11e16?membershipno=Value%20for%20membershipno&amp;name=Value%20for%20name&amp;DOB=Value%20for%20DOB&amp;CountyOffice=Value%20for%20CountyOffice&amp;ADName=Value%20for%20ADName&amp;ADDOB=Value%20for%20ADDOB&amp;ADColour=Value%20for%20ADColour&amp;ADCHIP=Value%20for%20ADCHIP&amp;hearing=Value%20for%20hearing&amp;bbd=Value%20for%20bbd&amp;non-verbal=Value%20for%20non-verbal&amp;Mobility=Value%20for%20Mobility&amp;medical%20alert=Value%20for%20medical%20alert&amp;invisible-disabilities=Value%20for%20invisible-disabilities&amp;training=Value%20for%20training&amp;expirationDate=2025-01-01%2015%3A00</a>
  but I would like for the fields to be automatically completed using the information I supplied when the contact was added. How would I do this please?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-12-06T14:19:19.077Z
Comments.Text: Are you sure you need to expose this integration to the UI? Or is it sufficient to call that url from behind the scenes to obtain the response from the external service?
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-12-06T18:08:00.327Z
Comments.Text: it would only be accesible to admin backend. I just dont really want to have to do it all manually for everyone
Comments.UserDisplayName: Dan
Tags: <custom-fields><integration><links>
Title: Generate a link from custom fields
ThreadText: # Generate a link from custom fields
  
  (Asked by: username_0 on 2024-12-06)
  
  I am trying to integrate 2 prducts, but im not sure on how to do it.
  when a new contact is added i would like for a button/link to go to another page, which will then generate a digital pass using the URL.
  this URL would be <https://example.com/integration/createpass/c317b438-81fb-4015-a212-fa9609c11e16?membershipno=Value%20for%20membershipno&name=Value%20for%20name&DOB=Value%20for%20DOB&CountyOffice=Value%20for%20CountyOffice&ADName=Value%20for%20ADName&ADDOB=Value%20for%20ADDOB&ADColour=Value%20for%20ADColour&ADCHIP=Value%20for%20ADCHIP&hearing=Value%20for%20hearing&bbd=Value%20for%20bbd&non-verbal=Value%20for%20non-verbal&Mobility=Value%20for%20Mobility&medical%20alert=Value%20for%20medical%20alert&invisible-disabilities=Value%20for%20invisible-disabilities&training=Value%20for%20training&expirationDate=2025-01-01%2015%3A00>
  but I would like for the fields to be automatically completed using the information I supplied when the contact was added. How would I do this please?
  
  **Tags:** custom-fields, integration, links
  
  > **Comments:**
  > **username_1**: Are you sure you need to expose this integration to the UI? Or is it sufficient to call that url from behind the scenes to obtain the response from the external service?  
  > **username_0**: it would only be accesible to admin backend. I just dont really want to have to do it all manually for everyone  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2024-12-06. Score: 2
  
  Some options:
  
  1 Make a message template with the url and include tokens for the custom fields, e.g. `{contact.custom_27}` (use the tokens dropdown when composing the template to see them).
  
  2(a) Install civirules. Get it to trigger on new contact and send you an email using that message template. Or I can't remember if it can create an activity with specific details but if so you could get it to do that.
  
  OR
  
  2(b) After creating the contact, choose print/merge document and use your message template. Click preview or save. The pdf will contain your link. If you click save the pdf will be saved in an activity. Or instead of print/merge you could send an email using your template.
  
  > **Comments:**
  > **username_0**: But is there a way to make the link it generated be a button on the contact screen rather than in an activity?  
  
  ---
  
  