Search Community
- Force.com Discussion Boards
- :
- Salesforce User Discussions
- :
- Product Discussion
- :
- Help with WIL
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Help with WIL
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-07-2004 12:02 AM
<Just reposting some of the helpful post on the yahoo group> Messages number from yahoo: 577
I'm trying to set up a WIL that will open the product record that meets the search criteria. All I've been able to do is create a link
that pulls up a list of results, from which the user can then click to get to the product record.
Is there any way to eliminate this extra step, so that clicking on the WIL opens the product record?
(Is there a resource that exists anywhere that gives some guidance on syntax for WILs?)
Thanks!
Kathy
Re: Help with WIL
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-07-2004 12:22 AM - last edited on 10-07-2004 12:22 AM
( Original yahoo message message number, 298, posted by Sarah @ salesforce )
Yes, you can pre-populate contract data using a WIL on an opportunity, but it takes a bit of digging.
Here's how: A Web Integration Link (WIL) is a hyperlink on a record in salesforce that, when clicked, will open up a different web page.You can use a WIL in salesforce to trigger the creation of a new salesforce record from within an existing record. By customizing your WIL you can prepopulate the newly created record with information from the existing record.
To create a WIL:
1. Click on the New link under the list of Tabs that corresponds to the type of record your WIL is going to create.
2. Copy the URL in your web browser's address bar. example: https://ssl.salesforce.com/006/e?retURL=%2Fhome%2F
3. Click on Setup in the top right corner
4. Click on Customize salesforce.com
5. Click on the type of record on which you want the link to be displayed
6. Click on Web Integration Links
7. Click on New
8. Type in your Link Label and click Next
9. Paste the copied URL into the Link URL field. You can now begin customizing your URL to propogate the values of fields on your existing record onto your new record.
10. At the end of your URL type in an ampersand (the & symbol) followed by the name of the field you want to propogate. To find the field name, view the page source on the edit page of the target record. In your case, this would be contracts. Scroll all the way to the bottom and view the section of HTML that ends approximately 50 lines from the end of the page. You should see a bunch of lines that start like this: < / td >< td >< input name="ctrc16">. The value "ctrc16" is the name of the field that you want to use in your WIL. You'll have a experiment a bit to find the field that you want, but it should be the one in the < td > tab immediately after the field label that you're looking for. This is definitely a little tricky the first time, but once you've done it, you should get the hang of it.
11. After the Name of the field, type in an equals sign followed by the value you want entered in that field. You can type in the actual value you want propogated, such as a word or number, or you can pull data from your existing record. To pull data from your existing record the value would be the Merge Field Name available in salesforce Help at
https://ssl.salesforce.com/help/doc/en/admin_templTo propogate more than one field just repeat steps 10 and 11 as needed.
Here's an example WIL URL:
https://na1.salesforce.com/800/e?retURL=%2Fhome%2FI hope this helps,
Sarah
Message Edited by Fifedog on 10-07-2004 12:25 AM
Re: Help with WIL
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-07-2004 04:43 AM
Quick note - as I'm doing alot of these lately...
https://na1.salesforce.com/800/e?retURL=%2Fhome%2F
needs to be
https://na1.salesforce.com/800/e?retURL=%2Fhome%2F
(That "=" is needed between the field id and value)
What I haven't toyed with, but believe is a caviot of using WILs like this is that if you rearrance your page layout you may (not tested yet) renumber the field ids in the page. So what was once your Opportunity Close Date field is now something else... Also, if you are populating a custom field I don't believe the above caviot applies as it appears as through the field id for a custom field is an SF ID number (those 15-18 character IDs), so it may not have that problem at all.
My only wish is that while you can set a WIL to open in a new window, or IFRAMED in the existing window you can't set a WIL to open in the same window unframed. So if you are going to use a WIL back to the SF site and don't want it to look 'funky' (2 rows of tabs, for example), you have to open in a new window.
Re: Help with WIL
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-08-2004 10:52 AM
Re: Help with WIL
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-08-2004 03:30 PM
Re: Help with WIL
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-12-2004 09:56 PM
so no caviot needed.
Re: Help with WIL
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-13-2004 12:49 PM
daroz wrote:Quick note - as I'm doing alot of these lately...
https://na1.salesforce.com/800/e?retURL=%2Fhome%2F
home.jsp&ctrc16{!Opportunity_CloseDate} needs to be
https://na1.salesforce.com/800/e?retURL=%2Fhome%2F
home.jsp&ctrc16={!Opportunity_CloseDate} (That "=" is needed between the field id and value)
What I haven't toyed with, but believe is a caviot of using WILs like this is that if you rearrance your page layout you may (not tested yet) renumber the field ids in the page. So what was once your Opportunity Close Date field is now something else... Also, if you are populating a custom field I don't believe the above caviot applies as it appears as through the field id for a custom field is an SF ID number (those 15-18 character IDs), so it may not have that problem at all.
My only wish is that while you can set a WIL to open in a new window, or IFRAMED in the existing window you can't set a WIL to open in the same window unframed. So if you are going to use a WIL back to the SF site and don't want it to look 'funky' (2 rows of tabs, for example), you have to open in a new window.
I was successful in creating two of these Web Links yesterday - so thanks for the tip!
One thing I did notice was that I could only populate 6 fields of data using your suggested method. Whenever I added a seventh field, it hung and I got nothing in the new window.
Any suggestions?
Re: Help with WIL
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-13-2004 01:58 PM
YoBerger wrote:
I was successful in creating two of these Web Links yesterday - so thanks for the tip!
One thing I did notice was that I could only populate 6 fields of data using your suggested method. Whenever I added a seventh field, it hung and I got nothing in the new window.
Any suggestions?
Humm... I haven't hit that limit yet, but when/if I do I'll let you know what I find out.
Re: Help with WIL
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-07-2005 01:31 PM
Need to have some advisement on finding the ID's for standard fields. Custom one's are fairly easy just by viewing your custom fields and then look at the id# in the address window at the top of the screen.
Please help....
Desperate...
Re: Help with WIL
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-07-2005 02:00 PM
Managing Templates
Your administrator can create and maintain templates for use in sending outbound email and generating mail merge documents.
Email templates allow users to send email to contacts, leads, and others using predefined templates. See Managing Email Templates.
Mail merge templates allow users to create custom documents using the information from your records. For example, you can create a customized thank you letter to a specific lead. See Managing Mail Merge Templates.
See Valid Merge Fields for a list of the fields you can use in email and mail merge templates.
Valid Merge Fields
The available merge fields vary according to which Salesforce.com Edition you have.
When creating an email or mail merge template or a web link, you can use the merge fields listed below. These fields will be replaced with information from your records, user information, or company information when you send an email, create a mail merge document, or use a web link.
Notes on Using Merge Fields
Guidelines for using custom fields as merge fields:
Prefix the field label with the type of record. For example, "Account_MarketCap" for an account field named "MarketCap."
Convert all spaces to underscores. For example, a custom opportunity field named "Product ID" becomes "Opportunity_Product_ID."
For web links and sforce controls, use the field name rather than the field label. For example, if the custom field name is "PO_Number," the merge field would be "Opportunity_PO_Number."
If your organization is already using the field label rather than the field name for web links and sforce controls, you can continue to do so, although we recommend that you use the field name for all new custom fields.
Multi-select picklists display each value selected, separated by a semicolon.
For email templates, you can add "substitute" text to any merge field so that the text will display, instead of a blank line, if an item does not have data in a particular field. To add substitute text, place a comma after the field name and enter the text before the closing bracket, for example, {!Lead_FirstName,Sir or Madam}.
Templates with contact merge fields can be used to generate email and mail merge documents for leads. Likewise, you can use lead templates to generate contact emails and documents.
To reference the name, email, phone, or company of the customer who submitted an online case, use the relevant {!Case_OnlineCustomer...} field. To reference the contact or account associated with a case, use the relevant contact or account merge fields.
For mail merge templates, do not enclose the merge field in curly braces, for example, use Account_Name, not {!Account_Name}.
For mail merge templates, your merge fields can contain only letters, numbers, and the underscore (_) character. For example, Opportunity_Product_# is not allowed. Mail merge field names cannot exceed 40 characters.
For opportunity mail merges, you can use contact merge fields to merge additional information about a related contact.
For local account, contact, and lead names, the standard merge field name will be used whenever the local name is blank.
If you are using the translation workbench to translate custom field names, users can look up merge fields in their chosen language.
Available Merge Fields
Account Fields
Salesforce.com Field Name Merge Field Name
Account Name {!Account_Name}
Account Name (Local) {!Account_Name_Local}
Account Number {!Account_AccountNumber}
Account Owner Email {!AccountOwner_Email}
Account Owner First Name {!AccountOwner_FirstName}
Account Owner Last Name {!AccountOwner_LastName}
Account Owner Name (full) {!AccountOwner_FullName}
Account Owner Phone {!AccountOwner_Phone}
Account Owner Title {!AccountOwner_Title}
Account Site {!Account_Site}
Annual Revenue {!Account_AnnualRevenue}
Billing Address (full) {!Account_FullBillingAddress}
Billing Address {!Account_BillingAddress}
Billing City {!Account_BillingCity}
Billing Country {!Account_BillingCountry}
Billing Postal Code {!Account_BillingPostalCode}
Billing State {!Account_BillingState}
Description {!Account_Description}
Employees {!Account_Employees}
Fax {!Account_Fax}
ID {!Account_ID}
Industry {!Account_Industry}
Last Updated {!Account_LastUpdated}
Ownership {!Account_Ownership}
Phone {!Account_Phone}
Rating {!Account_Rating}
SIC Code {!Account_SICCode}
Shipping Address (full) {!Account_FullShippingAddress}
Shipping Address {!Account_ShippingAddress}
Shipping City {!Account_ShippingCity}
Shipping Country {!Account_ShippingCountry}
Shipping Postal Code {!Account_ShippingPostalCode}
Shipping State {!Account_ShippingState}
Ticker Symbol {!Account_TickerSymbol}
Type {!Account_Type}
Website {!Account_Website}
URL of account detail page {!Account_Link}
Asset Fields
Salesforce.com Field Name Merge Field Name
Account (associated with asset) {!Asset_Account}
Asset ID {!Asset_ID}
Asset Name {!Asset_Name}
Competitor Asset {!Asset_IsCompetitorProduct}
Contact (associated with asset) {!Asset_Contact}
Description {!Asset_Description}
Install Date {!Asset_InstallDate}
Link (used to link to the asset detail) {!Asset_Link}
Price {!Asset_Price}
Product (associated with asset) {!Asset_Product}
Product Code {!Asset_ProductCode}
Product Description {!Asset_ProductDescription}
Product Family {!Asset_ProductFamily}
Purchase Date {!Asset_PurchaseDate}
Quantity {!Asset_Quantity}
Serial Number {!Asset_SerialNumber}
Status {!Asset_Status}
Usage End Date {!Asset_UsageEndDate}
Campaign Fields
Salesforce.com Field Name Merge Field Name
Campaign merge fields cannot be used in Team and Personal Editions. Also, mail merge templates cannot contain campaign merge fields.
Active {!Campaign_Active}
Actual Cost {!Campaign_ActualCost}
Amount All Opportunities {!Campaign_AmountAllOpportunities}
Amount Won Opportunities {!Campaign_AmountWonOpportunities}
Budgeted Cost {!Campaign_BudgetedCost}
Campaign Name {!Campaign_Name}
Description {!Campaign_Description}
End Date {!Campaign_EndDate}
Expected Response {!Campaign_ExpectedResponse}
Expected Revenue {!Campaign_ExpectedRevenue}
ID {!Campaign_ID}
Last Activity {!Campaign_LastActivity}
Last Updated {!Campaign_LastUpdated}
Number Contacts {!Campaign_NumberContacts}
Number Converted Leads {!Campaign_NumberConvertedLeads}
Number Leads {!Campaign_NumberLeads}
Number Opportunities {!Campaign_NumberOpportunities}
Number Responses {!Campaign_NumberResponses}
Number Sent {!Campaign_NumberSent}
Number Won Opportunities {!Campaign_NumberWonOpportunities}
Start Date {!Campaign_StartDate}
Status {!Campaign_Status}
Type {!Campaign_Type}
Case Fields
Salesforce.com Field Name Merge Field Name
Account
(associated with case) {!Case_Account}
Asset
(associated with case) {!Case_Asset}
Contact
(associated with case) {!Case_Contact}
Closed {!Case_Closed}
Company
(of person who submitted an online case) {!Case_OnlineCustomerCompany}
Created Date
(for email templates only) {!Case_CreatedDate}
Description {!Case_Description}
(of person who submitted an online case) {!Case_OnlineCustomerEmail}
ID {!Case_ID}
Last Updated {!Case_LastUpdated}
Name
(of person who submitted an online case) {!Case_OnlineCustomerName}
Number {!Case_Number}
Origin {!Case_Origin}
Owner Email {!CaseOwner_Email}
Owner First Name {!CaseOwner_FirstName}
Owner Full Name {!CaseOwner_FullName}
Owner Last Name {!CaseOwner_LastName}
Owner Phone {!CaseOwner_Phone}
Owner Title {!CaseOwner_Title}
Phone
(of person who submitted an online case) {!Case_OnlineCustomerPhone}
Priority {!Case_Priority}
Reason {!Case_Reason}
Status {!Case_Status}
Subject {!Case_Subject}
Type {!Case_Type}
URL of case detail page {!Case_Link}
Contact Fields
Salesforce.com Field Name Merge Field Name
Assistant {!Contact_Assistant}
Asst Phone {!Contact_AsstPhone}
Birth Date {!Contact_Birthdate}
Department {!Contact_Department}
Description {!Contact_Description}
Email {!Contact_Email}
Fax {!Contact_Fax}
First Name {!Contact_FirstName}
First Name (Local) {!Contact_FirstName_Local}
Home Phone {!Contact_HomePhone}
ID {!Contact_ID}
Last Name {!Contact_LastName}
Last Name (Local) {!Contact_LastName_Local}
Last Stay-in-Touch Request Date {!Contact_Stay-in-Touch_Request_Date}
Last Stay-in-Touch Save Date {!Contact_Stay-in-Touch_Save_Date}
Last Updated {!Contact_LastUpdated}
Lead Source {!Contact_LeadSource}
Mailing Address (full) {!Contact_FullMailingAddress}
Mailing Address {!Contact_MailingAddress}
Mailing City {!Contact_MailingCity}
Mailing Country {!Contact_MailingCountry}
Mailing Postal Code {!Contact_MailingPostalCode}
Mailing State {!Contact_MailingState}
Name {!Contact_FullName}
Mobile {!Contact_Mobile}
Other Address (full) {!Contact_FullOtherAddress}
Other Address {!Contact_OtherAddress}
Other City {!Contact_OtherCity}
Other Country {!Contact_OtherCountry}
Other Phone {!Contact_OtherPhone}
Other Postal Code {!Contact_OtherPostalCode}
Other State {!Contact_OtherState}
Phone {!Contact_Phone}
Salutation {!Contact_Salutation}
Title {!Contact_Title}
URL of contact detail page {!Contact_Link}
Contract Fields
Salesforce.com Field Name Merge Field Name
Account Name {!Contract_Account_Name}
Activated By {!Contract_ActivatedBy}
Activated Date {!Contract_ActivatedDate}
Company Signed By {!Contract_CompanySigned}
Contract Owner First {!ContractOwner_FirstName}
Contract Owner Last {!ContractOwner_LastName}
Contract Record Type {!Contract_RecordType_ID}
Customer Expiration Notice {!Contract_OwnerExpirationNotice}
Customer Signed By {!Contract_CustomerSigned}
Customer Signed Title {!Contract_CompanySignedTitle}
Lead Fields
Salesforce.com Field Name Merge Field Name
Lead merge fields cannot be used in Team and Personal Editions.
Address (full) {!Lead_FullAddress}
Address {!Lead_Address}
Annual Revenue {!Lead_AnnualRevenue}
City {!Lead_City}
Company {!Lead_Company}
Country {!Lead_Country}
Description {!Lead_Description}
Email {!Lead_Email}
Fax {!Lead_Fax}
First Name {!Lead_FirstName}
First Name (Local) {!Lead_FirstName_Local}
ID {!Lead_ID}
Industry {!Lead_Industry}
Last Name {!Lead_LastName}
Last Name (Local) {!Lead_LastName_Local}
Last Updated {!Lead_LastUpdated}
Lead Company (Local) {!Lead_Company_Local}
Lead Source {!Lead_LeadSource}
Mobile {!Lead_Mobile}
Name {!Lead_FullName}
No. of Employees {!Lead_Employees}
Owner Email {!LeadOwner_Email}
Owner First Name {!LeadOwner_FirstName}
Owner Full Name {!LeadOwner_FullName}
Owner Last Name {!LeadOwner_LastName}
Owner Phone {!LeadOwner_Phone}
Owner Title {!LeadOwner_Title}
Phone {!Lead_Phone}
Postal Code {!Lead_PostalCode}
Salutation {!Lead_Salutation}
State {!Lead_State}
Title {!Lead_Title}
Website {!Lead_Website}
URL of lead detail page {!Lead_Link}
Opportunity Fields
Salesforce.com Field Name Merge Field Name
Account ID {!Opportunity_Account_ID}
Account Name {!Opportunity_Account_Name}
Amount {!Opportunity_Amount}
Campaign Source {!Opportunity_Campaign_Source}
Close Date {!Opportunity_CloseDate}
Created Date
(for email templates only) {!Opportunity_CreatedDate}
Description {!Opportunity_Description}
ID {!Opportunity_ID}
Last Updated {!Opportunity_LastUpdated}
Lead Source {!Opportunity_LeadSource}
Name {!Opportunity_Name}
Next Step {!Opportunity_NextStep}
Probability {!Opportunity_Probability}
Stage {!Opportunity_Stage}
Type {!Opportunity_Type}
URL of opportunity detail page {!Opportunity_Link}
Organization Fields
Salesforce.com Field Name Merge Field Name
Address (full) {!Org_FullAddress}
Address {!Org_Address}
City {!Org_City}
Country {!Org_Country}
Division {!Org_Division}
Fax {!Org_Fax}
Name {!Org_Name}
Organization ID {!Org_ID}
Phone {!Org_Phone}
Postal Code {!Org_PostalCode}
State {!Org_State}
User Fields
Salesforce.com Field Name Merge Field Name
User Fields are also known as Sending User Fields for administrators and users with the "Manage Users" permission. Use them in email templates when referencing the person sending the email; see Receiving User Fields for a list of merge fields that reference the recipient of the email. A subset of these fields is available for customizing Self-Service pages.
Address (full) {!User_FullAddress}
Address {!User_Address}
Alias {!User_Alias}
City {!User_City}
Company {!User_Company}
Country {!User_Country}
Department {!User_Department}
Division {!User_Division}
Email {!User_Email}
Fax {!User_Fax}
First Name {!User_FirstName}
ID {!User_ID}
Last Name {!User_LastName}
Mobile {!User_Mobile}
Name {!User_FullName}
Phone {!User_Phone}
Postal Code {!User_PostalCode}
Session ID (of user) {!User_Session_ID}
State {!User_State}
Title {!User_Title}
Today's Date {!Today}
Username {!User_Username}
Receiving User Fields
Salesforce.com Field Name Merge Field Name
Administrators and users with the "Manage Users" permission can use these merge fields for email templates to reference the recipient of the email. See User Fields for a list of merge fields that reference the person sending the email.
Address (full) {!Receiving_User_FullAddress}
Address {!Receiving_User_Address}
Alias {!Receiving_User_Alias}
City {!Receiving_User_City}
Company {!Receiving_User_Company}
Country {!Receiving_User_Country}
Department {!Receiving_User_Department}
Division {!Receiving_User_Division}
Email {!Receiving_User_Email}
Fax {!Receiving_User_Fax}
First Name {!Receiving_User_FirstName}
ID {!Receiving_User_ID}
Last Name {!Receiving_User_LastName}
Mobile {!Receiving_User_Mobile}
Name {!Receiving_User_FullName}
Phone {!Receiving_User_Phone}
Postal Code {!Receiving_User_PostalCode}
Session ID (of user) {!Receiving_User_Session_ID}
State {!Receiving_User_State}
Title {!Receiving_User_Title}
Username {!Receiving_User_Username}
sforce API Fields
Salesforce.com Field Name Merge Field Name
URL of API enterprise server {!API_Enterprise_Server_URL}
URL of API partner server {!API_Partner_Server_URL}
API session ID {!API_Session_ID}
Link to Java codebase in sforce control {!Scontrol_JavaCodebase}
Link to Java archive in sforce control {!Scontrol_JavaArchive}
Link to file in sforce control {!Scontrol_URL}
See Also:
Setting Web Links
© Copyright 2000-2004 salesforce.com, inc. All rights reserved.

