• cfisher
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies

I am a new user! How can I use Eclipse IDE to mass modify pick-list options?  I was hoping to avoid going into each pick-list option individually in order to make the change.

 

Thanks,

 

Charlie

Hello - I am new to doing more complex language in Custom Report Links and needed some help.  I am trying to create a dynamic link that will check the user's Region ("Americas") and then pull in a different report based on that factor.  

 

I keep getting a syntax error.  Do i need to encase the report links in some url brackets?

 

Thanks,

 

Charlie

 

{!IF(
{!ISPICKVAL($User.Region__c,"Americas")},
/00O80000005EMGc?pv0={!Campaign.Id},
/00O800000057qbj?pv0={!Campaign.Id}
)}

Hi - I'm new to Apex Coding and would like some help concerning adding a Country Code to a vCard export application.  We have a custom field in our Contacts called Country Code.  We would like this to appear before the relevant phone/fax/cell number when we export it out of Salesforce and into Outlook via a vCard.   If we just concatenate the code (underlined), the Country Code will appear even if there isn't a number in that field.  The entire code is below, but the modified code for fax is bolded. Thanks for any help!

 

apex:page title="GeneratevCard.vcf" cache="True" contentType="text/x-vcard#{!Contact.LastName + Contact.FirstName}.vcf" standardcontroller="Contact">BEGIN:VCARD

VERSION:2.1

N;CHARSET=utf-8:<c:EscapeVCard sValue="{!Contact.LastName}"/>;<c:EscapeVCard sValue="{!Contact.FirstName}"/>

FN;CHARSET=utf-8:<c:EscapeVCard sValue="{!Contact.Name}"/>

ORG;CHARSET=utf-8:<c:EscapeVCard sValue="{!Contact.Account.Name}"/>

TITLE;CHARSET=utf-8:<c:EscapeVCard sValue="{!Contact.Title}"/>

 

 

TEL;CELL;VOICE:<c:EscapeVCard sValue="{!Contact.CountryCode__c + Contact.MobilePhone}"/>

TEL;WORK;VOICE:<c:EscapeVCard sValue="{!Contact.Phone}"/>

 

if (Contact.Fax != null) {

                   TEL;WORK;FAX:<c:EscapeVCard sValue="{!Contact.CountryCode__c + Contact.Fax}"/>

}      else   {

                   TEL;WORK;FAX:<c:EscapeVCard sValue="null" /> }

 

TEL;Home;VOICE:<c:EscapeVCard sValue="{!Contact.HomePhone}"/>

EMAIL;PREF;INTERNET:<c:EscapeVCard sValue="{!Contact.Email}"/>

ADR;CHARSET=utf-8;WORK;PREF:;;<c:EscapeVCard sValue="{!Contact.MailingStreet}"/>;<c:EscapeVCard sValue="{!Contact.MailingCity}"/>;<c:EscapeVCard sValue="{!Contact.MailingState}"/>;<c:EscapeVCard sValue="{!Contact.MailingPostalCode}"/>;<c:EscapeVCard sValue="{!Contact.MailingCountry}"/>

X-MS-OL-DEFAULT-POSTAL-ADDRESS:0

X-MS-OL-DESIGN;CHARSET=utf-8:

END:VCARD

</apex:page>

  • September 13, 2012
  • Like
  • 0

I am a new user! How can I use Eclipse IDE to mass modify pick-list options?  I was hoping to avoid going into each pick-list option individually in order to make the change.

 

Thanks,

 

Charlie

Hi - I'm new to Apex Coding and would like some help concerning adding a Country Code to a vCard export application.  We have a custom field in our Contacts called Country Code.  We would like this to appear before the relevant phone/fax/cell number when we export it out of Salesforce and into Outlook via a vCard.   If we just concatenate the code (underlined), the Country Code will appear even if there isn't a number in that field.  The entire code is below, but the modified code for fax is bolded. Thanks for any help!

 

apex:page title="GeneratevCard.vcf" cache="True" contentType="text/x-vcard#{!Contact.LastName + Contact.FirstName}.vcf" standardcontroller="Contact">BEGIN:VCARD

VERSION:2.1

N;CHARSET=utf-8:<c:EscapeVCard sValue="{!Contact.LastName}"/>;<c:EscapeVCard sValue="{!Contact.FirstName}"/>

FN;CHARSET=utf-8:<c:EscapeVCard sValue="{!Contact.Name}"/>

ORG;CHARSET=utf-8:<c:EscapeVCard sValue="{!Contact.Account.Name}"/>

TITLE;CHARSET=utf-8:<c:EscapeVCard sValue="{!Contact.Title}"/>

 

 

TEL;CELL;VOICE:<c:EscapeVCard sValue="{!Contact.CountryCode__c + Contact.MobilePhone}"/>

TEL;WORK;VOICE:<c:EscapeVCard sValue="{!Contact.Phone}"/>

 

if (Contact.Fax != null) {

                   TEL;WORK;FAX:<c:EscapeVCard sValue="{!Contact.CountryCode__c + Contact.Fax}"/>

}      else   {

                   TEL;WORK;FAX:<c:EscapeVCard sValue="null" /> }

 

TEL;Home;VOICE:<c:EscapeVCard sValue="{!Contact.HomePhone}"/>

EMAIL;PREF;INTERNET:<c:EscapeVCard sValue="{!Contact.Email}"/>

ADR;CHARSET=utf-8;WORK;PREF:;;<c:EscapeVCard sValue="{!Contact.MailingStreet}"/>;<c:EscapeVCard sValue="{!Contact.MailingCity}"/>;<c:EscapeVCard sValue="{!Contact.MailingState}"/>;<c:EscapeVCard sValue="{!Contact.MailingPostalCode}"/>;<c:EscapeVCard sValue="{!Contact.MailingCountry}"/>

X-MS-OL-DEFAULT-POSTAL-ADDRESS:0

X-MS-OL-DESIGN;CHARSET=utf-8:

END:VCARD

</apex:page>

  • September 13, 2012
  • Like
  • 0