Answers.Body: <p>In order to use legal_name against your message template the best way would be enabling CIVICRM_MAIL_SMARTY to 1 in civicrm_setting.php</p>
  <p>By doing this you can access {contact.legal_name} in your message template</p>
  <p>I did made a test against Version 4.7.15 which worked. so please give a try</p>
  <p>Reference: <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Smarty+in+mail+templates" rel="nofollow noreferrer">https://wiki.civicrm.org/confluence/display/CRMDOC/Smarty+in+mail+templates</a></p>
  <p>I guess this helps!!!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2017-02-16T16:50:20.870Z
Answers.LastActivityDate: 2020-08-18T20:45:08.080Z
Answers.LastEditDate: 2020-08-18T20:45:08.080Z
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Answers.Body: <p>At least you can use this one: {contact.organization_name}</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-18T16:32:37.107Z
Answers.LastActivityDate: 2020-08-18T16:32:37.107Z
Answers.UserDisplayName: Guillaume Sorel
Body: <p>I need to use an organization's legal name for invoicing. I have already customized the invoice template for many other fields, but cannot see how to insert Legal Name as a token.</p>
  
  <p>I note this 10 year old forum posting saying that the Legal Name field was not exposed to the token system:
  <a href="https://forum.civicrm.org/index.php?topic=832.0" rel="nofollow noreferrer">https://forum.civicrm.org/index.php?topic=832.0</a>
  Is this still the latest answer?</p>
  
  <p>I know I could add this to my custom field set for organization financial info, but I would rather not duplicate existing field names.</p>
  
  <p>Likewise I can put the Legal Name in the Organization name field, but that renders the Legal Name field redundant (and gives me long, unwieldy org names)</p>
  
  <p>We're running 4.6.24</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-16T11:56:30.760Z
Comments.Text: https://docs.civicrm.org/dev/en/master/hooks/hook_civicrm_tokens/
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-16T11:56:38.190Z
Comments.Text: https://docs.civicrm.org/dev/en/master/hooks/hook_civicrm_tokenValues/
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-16T16:18:12.183Z
Comments.Text: I was hoping to do this without hooks since a standard field exists. I'm surprised that this hasn't been an issue before since I would consider any well-formed invoice to be addressed to the legal entity that was expected to pay it. Perhaps I should explore why this field is not exposed to the token system before deciding what to do next.
Comments.UserDisplayName: Richard Yule
Tags: <tokens><invoice>
Title: Can Legal Name be used as a token?
ThreadText: # Can Legal Name be used as a token?
  
  (Asked by: username_0 on 2017-02-16)
  
  I need to use an organization's legal name for invoicing. I have already customized the invoice template for many other fields, but cannot see how to insert Legal Name as a token.
  
  I note this 10 year old forum posting saying that the Legal Name field was not exposed to the token system:
  <https://forum.civicrm.org/index.php?topic=832.0>
  Is this still the latest answer?
  
  I know I could add this to my custom field set for organization financial info, but I would rather not duplicate existing field names.
  
  Likewise I can put the Legal Name in the Organization name field, but that renders the Legal Name field redundant (and gives me long, unwieldy org names)
  
  We're running 4.6.24
  
  **Tags:** tokens, invoice
  
  > **Comments:**
  > **username_1**: https://docs.civicrm.org/dev/en/master/hooks/hook_civicrm_tokens/  
  > **username_1**: https://docs.civicrm.org/dev/en/master/hooks/hook_civicrm_tokenValues/  
  > **username_0**: I was hoping to do this without hooks since a standard field exists. I'm surprised that this hasn't been an issue before since I would consider any well-formed invoice to be addressed to the legal entity that was expected to pay it. Perhaps I should explore why this field is not exposed to the token system before deciding what to do next.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-02-16. Score: 5
  
  In order to use legal\_name against your message template the best way would be enabling CIVICRM\_MAIL\_SMARTY to 1 in civicrm\_setting.php
  
  By doing this you can access {contact.legal\_name} in your message template
  
  I did made a test against Version 4.7.15 which worked. so please give a try
  
  Reference: <https://wiki.civicrm.org/confluence/display/CRMDOC/Smarty+in+mail+templates>
  
  I guess this helps!!!
  
  
  ---
  
  ### Answer by username_2 on 2020-08-18. Score: 0
  
  At least you can use this one: {contact.organization\_name}
  
  
  ---
  
  