• rcraven
  • NEWBIE
  • 250 Points
  • Member since 2007

  • Chatter
    Feed
  • 10
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 37
    Questions
  • 54
    Replies

can somebody guide me how to import attachment file into SFDC environment through apex data loader? i need step by step procedure..

  • July 20, 2011
  • Like
  • 0

In our Sandbox environment, "cs13", we have noticed that our unit tests for apex controller classes have started failing due to the below error message:

- Method does not exist or incorrect signature: Test.set CurrentPage(System.PageReference)

We're using API version 24.0. This is an internal Salesforce object "Test" and a standard Salesforce method, "setCurrentPage()". This method is used by a unit test to set the current page reference to test against, without it, code coverage is 0% for any apex controller class.

This is impacting our current ability to deploy code to production, which we would like to do this weekend.

 

Can anybody shed some light on this problem.  Am I using the wrong API version?

We are experiencing odd behaviour in our Sandbox instance(s) [cs13] since 3/9/12.  

 

When switching user profiles (via Admin login link), and then navigating between standard pages and Visualforce pages. We were receiving internal system error message indicating that the URL for our Visualforce page is no longer valid?  In addition, in some cases, record updates on Visualforce custom pages were not saving edited values?  Worse, there is no issue(s) being reported in our Debug logs.   

 

We first discovered this error on 3/9/12 @ 3:15 p.m. EST, in our production environment (na3).  We called Salesforce basic support and opened a case to find out that they were aware of the issue and would notify us if the status changed or if the issue was resolved (this didn't happen).  In addition, I'm left wondering if Salesforce basic support knew about it, why this never showed up on the trust.salesforce.com site?

 

If anyone knows of a work-around, please let us know, thanks!

 

 

 

There is a running issue with standard Salesforce case support settings which notify contacts.  While working cases our support users have the option to send the client contact a notification on case create, update, or resolution.   However, the standard support settings feature breaks when you use *After* Apex Triggers. It also breaks when you use a *Before* Case Comment Trigger that also updates the parent Case.   We've updated almost all of our Apex Triggers to fire as *Before* triggers, and still the issue persists.  In addition, no errors, exceptions or, warnings  are generated in the Apex debug logs to indicate that there is a problem (triggers and apex classes execute as expected, just no email is generated).  Call me crazy, but I believe we should be able to create *After* Apex Triggers without fear of breaking standard Salesforce functionality!

 

The Salesforce support fix suggested is that we use the following DML email Header options when updating these records.  (ex)

 

Database.DMLOptions dlo = new Database.DMLOptions();

dlo.EmailHeader.triggerOtherEmail = true;

Database.update(updateCases, dlo);

 

However, this option ends up sending an email to a contact every time the record is updated regardless of whether or not the support user selected to notify contact or not.  Worse yet, the standard checkbox field to "notify contacts" is not available in the API to allow us to branch this logic.  Another concern we have is even if this did work, would using this email header option cause the emails to count against our mass email limits.

 

So, the work-around is that we re-write the case UI to access a custom "notify contact" field, and use a special trigger with the DML email option, and hope that we don't run into email limits.

 

We've vetted this issue to both Salesforce support and our Salesforce account executive after the fact, and in both cases were told that Salesforce R&D does not see this as a bug?  

The apex:sectionHeader tag displays prefectly when the apex:page, showHeader="true".  However, when showHeader="false" the apex:sectionHeader is missing the related icon?
 
I've tried using the apex:page, standardStylesheets="true" attribute to no avail.

Note the apex:page is being displayed from a custom object button.

Can anyone confirm whether or not this is a bug?

We're running a dynamic dashboard, and although there are options to limit cases by ownership...i.e. "my cases" or "my teams cases"...  Does anyone know of any literal value we can use to specify "my created" or "my closed" cases instead of filtering based on ownership of cases.  We've done this in the past using parameter based reports but not sure if we can pass the running user of the dashboard... or grab the current user as a literal in the report filter criteria.

I'm trying to determine all the senarios where sending email via Apex counts against a SF Organization's mass email govener limits?

 

The Apex Reference Documentation (PDF), pg. 341:

 

  • Single email messages sent with the sendEmail method count against the sending organization's daily single email limit.  When this limit is reached, calls to the sendEmail method using SingleEmailMessage are rejected, and the user receives a SINGLE_EMAIL_LIMIT_EXCEEDED error code. However, single emails sent through the application are allowed.

The Apex Reference Documentation (PDF), pg. 192-193:

 

  • Outbound Email: Limits for Single and Mass Email Sent Using Apex..  You can send single emails to a maximum of 1,000 external email addresses per day based on Greenwich Mean Time.  You can send an unlimited amount of email to your internal users.

 

Are there any instances where using Messaging.sendEmail does NOT count against a Organization's mass email limits?

 

How can organizations calculate current workflow and approval related email usage? How can we determine how much this new governor limit will impact us? 

 

Do we have to submit an idea to request this type of information (i.e. like the total api usage under setup - company information), is it not obvious, that organizations would need this information? 

 

Lastly, after the limit is reached we receive a typical "your beat" response, and then workflow completes but email alerts are dropped, not even retried next day?  For an Enterprise CRM this seems pretty unreliable.

 

 

 

 

 

 


How can organizations calculate current workflow and approval related email usage? How can we determine how much this new governor limit will impact us? Will a total be displayed under the organization information in Salesforce (i.e. like the total api usage)?  Anyone have any ideas?

Would like to create an API account that has exclusive read/write authorization for the Event object.  The API user account will be used to integrate SF shared calendars with backend hosted shared calendars.

 

I've had to enabled modify all data for this API user's profile to ensure Event object permissions were given.  Please let me know if I'm missing something that can enabled granular Event object permissions.  Ideally, do not want to comprimise SF security by granting keys to the kingdom.

 

Thanks in advance,

-Rob

 

 

Apply using this link:
 
ABOUT THE COMPANY:
FTI Consulting is a global business advisory firm dedicated to helping organizations protect and enhance their enterprise value.  For over 25 years, FTI has brought insight and expertise to deliver successful resolution to the most challenging financial, litigation, and business-critical issues. FTI, recently ranked among Fortune magazine’s 100 Fastest-Growing Companies, is a leading global firm that organizations rely on for advice and solutions in the areas of corporate finance and restructuring, disputes and investigations, economic consulting, e-discovery software and services, reputation management, and transaction advisory when confronting the critical issues that shape their futures.  We are involved in high-stakes, fast-paced computer forensics projects from around the world.  Our workforce of more than 3,500 employees includes numerous PhDs, MBAs, CPAs, CFEs, JDs, and technologists with expertise across a broad range of industries including financial services, retail, healthcare, energy, media, and communications. If you are interested in becoming part of a fast growing company and helping shape its future, read on.
 
ABOUT THE OPPORTUNITY:
The Salesforce CRM Administrator will manage day-to-day operations of Salesforce.com CRM system. Day-to-Day operations will include but are not limited to, system administration, user support/training, change control, interface design, data quality, requirements gathering and reporting. The CRM administrator will report to the CRM Architect but he or she will take direction from the Director of CS Service Delivery. This position provides a tremendous opportunity for a dynamic, forward thinking individual to provide FTI with critical system support and focuses on the growth, development, integration and maintenance over our Salesforce.com CRM system.  This role can be located in either Annapolis, MD or Pittsburgh, PA.
 
PRIMARY DUTIES:     
  • Administration of the company’s Salesforce.com CRM instance and development of related processes; responsible for assisting with its adoption and ongoing success.
  • Administration functions include but are not limited to: user management, configuration, customization, report and dashboard development, data management, case (ticket) management, training, and support for AppExchange applications. Specific examples of Salesforce Administrations tasks include:
    • Customize Salesforce.com fields, page layouts, record types, searching, list views, queues, reports, and dashboards.
    • Maintain security such as user accounts, mobile user accounts, sharing rules, user roles, user profiles, field level security, content folder rights, groups, list view rights, and custom apex pages and classes, etc.
    • Maintain and create workflow rules, validation rules, formula fields, escalation rules, auto-assignment rules, etc.
    • Maintain overall system configuration, change control, and enhancements
    • Assist in developing and maintaining documentation on processes, policies, application configuration, and help related materials
    • Manage operational requests and troubleshoot issues, working with diverse user groups
    • Act as the primary point of contact for Salesforce users.
    • Manage instance to ensure data integrity
    • Maintain system metrics to track trends in usage and data integrity.
    • Manage the production of product and service-related training materials.
    • Conduct training of SalesForce.com to users. Present changes/system enhancements and overall training to diverse audiences.
    • Support the tracking and reporting of all Salesforce.com feature request(s) and development initiatives
    • Manage instance to ensure data integrity
    • Promote adoption of system throughout FTI
  • Specific examples of Salesforce Development tasks include:
    • Identify SalesForce.com usage problems and craft technical / communication plans to remedy.
    • Obtain and document requirements when needed
    • Develop/modify ad hoc reports and dashboards as requested
    • Develop/modify HTML email and java script templates to support custom and auto generated system responses
    • Design and build custom Salesforce objects
    • Manage mass imports and exports of data.
    • Willingness to learn Force.com development, and ability to assist in quality assuring in-house custom code.
    • Serve as back up for architect and understand all workflow and system process.
    • Consider new releases of Salesforce.com CRM functionality and assess applicability to FTI
  • Provide high quality support via both telephone and email.
  • Undertake additional analysis and reporting projects as directed by management
  • Work with project team to drive deliverables from vendors
  • Promotes and fosters a positive work environment
  • Ability to travel when requested up to 10%.
  • Other duties as assigned
 
BASIC QUALIFICATIONS: 
·         2 - 4 years technical support for web-based applications.
·         2 years previous experience or exposure to CRM/Helpdesk technologies.
·         2 years experience and proficiency with HTML, CSS, and JavaScript.
·         1 year experience with process analysis, ideally with experience in developing and documenting process flows, roles and responsibilities, defining requirements and translating them into system implementation.
·         B.S. or a B.A. college degree or commensurate work experience.
·         Salesforce.com Certified Administrator or 2+ years experience equivalent
 
PREFERRED SKILLS:
·         Working knowledge of relational databases design concepts and data management. Ability to work with data in complex spreadsheets and databases is required.
·         Understanding of Salesforce.
·         Basic understanding of Force.com and ability to maintain Force.com custom applications and code.
·         Previous Apex, Visual force development experience.
·         Previous experience programming in .NET.
·         MCSE or other MS certifications.
·         SQL 2005/2008 experience.
·         Webmaster / site experience a plus.
·         Proficiency with MS Office suite.
·         Outstanding analytical, business process development skills and problem solving skills.
·         Ability to troubleshoot system, process and data issues; ability to think clearly under pressure.
·         Flexible team player attitude willing to work extended hours when asked or when project needs arise.
·         Self motivated and detail oriented with excellent people and project management skills.
·         Demonstrated and proven ability to provide superior client service in demanding, deadline-driven situations.
·         Ability to effectively communicate and coordinate with senior business management and peers.
·         Possession of sufficient credit to facilitate travel if and when required.
 
POSITION CLASSIFICATION:   Exempt
 
FTI Consulting is an Equal Opportunity Employer

Salesforce CRM Administra​tor (FT) - Annapolis​, MD

 
Apply using this link:
 
ABOUT THE COMPANY:
FTI Consulting is a global business advisory firm dedicated to helping organizations protect and enhance their enterprise value.  For over 25 years, FTI has brought insight and expertise to deliver successful resolution to the most challenging financial, litigation, and business-critical issues. FTI, recently ranked among Fortune magazine’s 100 Fastest-Growing Companies, is a leading global firm that organizations rely on for advice and solutions in the areas of corporate finance and restructuring, disputes and investigations, economic consulting, e-discovery software and services, reputation management, and transaction advisory when confronting the critical issues that shape their futures.  We are involved in high-stakes, fast-paced computer forensics projects from around the world.  Our workforce of more than 3,500 employees includes numerous PhDs, MBAs, CPAs, CFEs, JDs, and technologists with expertise across a broad range of industries including financial services, retail, healthcare, energy, media, and communications. If you are interested in becoming part of a fast growing company and helping shape its future, read on.
 
ABOUT THE OPPORTUNITY:
The Salesforce CRM Administrator will manage day-to-day operations of Salesforce.com CRM system. Day-to-Day operations will include but are not limited to, system administration, user support/training, change control, interface design, data quality, requirements gathering and reporting. The CRM administrator will report to the CRM Architect but he or she will take direction from the Director of CS Service Delivery. This position provides a tremendous opportunity for a dynamic, forward thinking individual to provide FTI with critical system support and focuses on the growth, development, integration and maintenance over our Salesforce.com CRM system.  This role can be located in either Annapolis, MD or Pittsburgh, PA.
 
PRIMARY DUTIES:     
  • Administration of the company’s Salesforce.com CRM instance and development of related processes; responsible for assisting with its adoption and ongoing success.
  • Administration functions include but are not limited to: user management, configuration, customization, report and dashboard development, data management, case (ticket) management, training, and support for AppExchange applications. Specific examples of Salesforce Administrations tasks include:
    • Customize Salesforce.com fields, page layouts, record types, searching, list views, queues, reports, and dashboards.
    • Maintain security such as user accounts, mobile user accounts, sharing rules, user roles, user profiles, field level security, content folder rights, groups, list view rights, and custom apex pages and classes, etc.
    • Maintain and create workflow rules, validation rules, formula fields, escalation rules, auto-assignment rules, etc.
    • Maintain overall system configuration, change control, and enhancements
    • Assist in developing and maintaining documentation on processes, policies, application configuration, and help related materials
    • Manage operational requests and troubleshoot issues, working with diverse user groups
    • Act as the primary point of contact for Salesforce users.
    • Manage instance to ensure data integrity
    • Maintain system metrics to track trends in usage and data integrity.
    • Manage the production of product and service-related training materials.
    • Conduct training of SalesForce.com to users. Present changes/system enhancements and overall training to diverse audiences.
    • Support the tracking and reporting of all Salesforce.com feature request(s) and development initiatives
    • Manage instance to ensure data integrity
    • Promote adoption of system throughout FTI
  • Specific examples of Salesforce Development tasks include:
    • Identify SalesForce.com usage problems and craft technical / communication plans to remedy.
    • Obtain and document requirements when needed
    • Develop/modify ad hoc reports and dashboards as requested
    • Develop/modify HTML email and java script templates to support custom and auto generated system responses
    • Design and build custom Salesforce objects
    • Manage mass imports and exports of data.
    • Willingness to learn Force.com development, and ability to assist in quality assuring in-house custom code.
    • Serve as back up for architect and understand all workflow and system process.
    • Consider new releases of Salesforce.com CRM functionality and assess applicability to FTI
  • Provide high quality support via both telephone and email.
  • Undertake additional analysis and reporting projects as directed by management
  • Work with project team to drive deliverables from vendors
  • Promotes and fosters a positive work environment
  • Ability to travel when requested up to 10%.
  • Other duties as assigned
 
BASIC QUALIFICATIONS: 
·         2 - 4 years technical support for web-based applications.
·         2 years previous experience or exposure to CRM/Helpdesk technologies.
·         2 years experience and proficiency with HTML, CSS, and JavaScript.
·         1 year experience with process analysis, ideally with experience in developing and documenting process flows, roles and responsibilities, defining requirements and translating them into system implementation.
·         B.S. or a B.A. college degree or commensurate work experience.
·         Salesforce.com Certified Administrator or 2+ years experience equivalent
 
PREFERRED SKILLS:
·         Working knowledge of relational databases design concepts and data management. Ability to work with data in complex spreadsheets and databases is required.
·         Understanding of Salesforce.
·         Basic understanding of Force.com and ability to maintain Force.com custom applications and code.
·         Previous Apex, Visual force development experience.
·         Previous experience programming in .NET.
·         MCSE or other MS certifications.
·         SQL 2005/2008 experience.
·         Webmaster / site experience a plus.
·         Proficiency with MS Office suite.
·         Outstanding analytical, business process development skills and problem solving skills.
·         Ability to troubleshoot system, process and data issues; ability to think clearly under pressure.
·         Flexible team player attitude willing to work extended hours when asked or when project needs arise.
·         Self motivated and detail oriented with excellent people and project management skills.
·         Demonstrated and proven ability to provide superior client service in demanding, deadline-driven situations.
·         Ability to effectively communicate and coordinate with senior business management and peers.
·         Possession of sufficient credit to facilitate travel if and when required.
 
POSITION CLASSIFICATION:   Exempt
 
FTI Consulting is an Equal Opportunity Employer

Salesforce CRM Administra​tor (FT) - Pittsburgh​, PA

 
Apply using this link:
 
ABOUT THE COMPANY:
FTI Consulting is a global business advisory firm dedicated to helping organizations protect and enhance their enterprise value.  For over 25 years, FTI has brought insight and expertise to deliver successful resolution to the most challenging financial, litigation, and business-critical issues. FTI, recently ranked among Fortune magazine’s 100 Fastest-Growing Companies, is a leading global firm that organizations rely on for advice and solutions in the areas of corporate finance and restructuring, disputes and investigations, economic consulting, e-discovery software and services, reputation management, and transaction advisory when confronting the critical issues that shape their futures.  We are involved in high-stakes, fast-paced computer forensics projects from around the world.  Our workforce of more than 3,500 employees includes numerous PhDs, MBAs, CPAs, CFEs, JDs, and technologists with expertise across a broad range of industries including financial services, retail, healthcare, energy, media, and communications. If you are interested in becoming part of a fast growing company and helping shape its future, read on.
 
ABOUT THE OPPORTUNITY:
The Salesforce CRM Administrator will manage day-to-day operations of Salesforce.com CRM system. Day-to-Day operations will include but are not limited to, system administration, user support/training, change control, interface design, data quality, requirements gathering and reporting. The CRM administrator will report to the CRM Architect but he or she will take direction from the Director of CS Service Delivery. This position provides a tremendous opportunity for a dynamic, forward thinking individual to provide FTI with critical system support and focuses on the growth, development, integration and maintenance over our Salesforce.com CRM system.  This role can be located in either Annapolis, MD or Pittsburgh, PA.
 
PRIMARY DUTIES:     
  • Administration of the company’s Salesforce.com CRM instance and development of related processes; responsible for assisting with its adoption and ongoing success.
  • Administration functions include but are not limited to: user management, configuration, customization, report and dashboard development, data management, case (ticket) management, training, and support for AppExchange applications. Specific examples of Salesforce Administrations tasks include:
    • Customize Salesforce.com fields, page layouts, record types, searching, list views, queues, reports, and dashboards.
    • Maintain security such as user accounts, mobile user accounts, sharing rules, user roles, user profiles, field level security, content folder rights, groups, list view rights, and custom apex pages and classes, etc.
    • Maintain and create workflow rules, validation rules, formula fields, escalation rules, auto-assignment rules, etc.
    • Maintain overall system configuration, change control, and enhancements
    • Assist in developing and maintaining documentation on processes, policies, application configuration, and help related materials
    • Manage operational requests and troubleshoot issues, working with diverse user groups
    • Act as the primary point of contact for Salesforce users.
    • Manage instance to ensure data integrity
    • Maintain system metrics to track trends in usage and data integrity.
    • Manage the production of product and service-related training materials.
    • Conduct training of SalesForce.com to users. Present changes/system enhancements and overall training to diverse audiences.
    • Support the tracking and reporting of all Salesforce.com feature request(s) and development initiatives
    • Manage instance to ensure data integrity
    • Promote adoption of system throughout FTI
  • Specific examples of Salesforce Development tasks include:
    • Identify SalesForce.com usage problems and craft technical / communication plans to remedy.
    • Obtain and document requirements when needed
    • Develop/modify ad hoc reports and dashboards as requested
    • Develop/modify HTML email and java script templates to support custom and auto generated system responses
    • Design and build custom Salesforce objects
    • Manage mass imports and exports of data.
    • Willingness to learn Force.com development, and ability to assist in quality assuring in-house custom code.
    • Serve as back up for architect and understand all workflow and system process.
    • Consider new releases of Salesforce.com CRM functionality and assess applicability to FTI
  • Provide high quality support via both telephone and email.
  • Undertake additional analysis and reporting projects as directed by management
  • Work with project team to drive deliverables from vendors
  • Promotes and fosters a positive work environment
  • Ability to travel when requested up to 10%.
  • Other duties as assigned
 
BASIC QUALIFICATIONS: 
·         2 - 4 years technical support for web-based applications.
·         2 years previous experience or exposure to CRM/Helpdesk technologies.
·         2 years experience and proficiency with HTML, CSS, and JavaScript.
·         1 year experience with process analysis, ideally with experience in developing and documenting process flows, roles and responsibilities, defining requirements and translating them into system implementation.
·         B.S. or a B.A. college degree or commensurate work experience.
·         Salesforce.com Certified Administrator or 2+ years experience equivalent
 
PREFERRED SKILLS:
·         Working knowledge of relational databases design concepts and data management. Ability to work with data in complex spreadsheets and databases is required.
·         Understanding of Salesforce.
·         Basic understanding of Force.com and ability to maintain Force.com custom applications and code.
·         Previous Apex, Visual force development experience.
·         Previous experience programming in .NET.
·         MCSE or other MS certifications.
·         SQL 2005/2008 experience.
·         Webmaster / site experience a plus.
·         Proficiency with MS Office suite.
·         Outstanding analytical, business process development skills and problem solving skills.
·         Ability to troubleshoot system, process and data issues; ability to think clearly under pressure.
·         Flexible team player attitude willing to work extended hours when asked or when project needs arise.
·         Self motivated and detail oriented with excellent people and project management skills.
·         Demonstrated and proven ability to provide superior client service in demanding, deadline-driven situations.
·         Ability to effectively communicate and coordinate with senior business management and peers.
·         Possession of sufficient credit to facilitate travel if and when required.
 
POSITION CLASSIFICATION:   Exempt
 
FTI Consulting is an Equal Opportunity Employer

Anyone have any ideas on how to create a custom report to monitor bulk data load jobs?  

 

Thanks in advance,

-Rob

Can anyone definatively define what the total and concurrent callout govenor limits are?

 

In the Apex developer's guide, under callouts, it says, "No more than 200 method calls per Salesforce.com license per 24 hours".

 

Lastly, I'm also thinking I need to be concerned about the concurrent callouts, as production organizations are limited to 25 concurrent API requests within a duration of 20 seconds or longer? 

 

 Thanks in advance, 

 -Rob 

 

Apply using this link:
 
ABOUT THE COMPANY:
FTI Consulting is a global business advisory firm dedicated to helping organizations protect and enhance their enterprise value.  For over 25 years, FTI has brought insight and expertise to deliver successful resolution to the most challenging financial, litigation, and business-critical issues. FTI, recently ranked among Fortune magazine’s 100 Fastest-Growing Companies, is a leading global firm that organizations rely on for advice and solutions in the areas of corporate finance and restructuring, disputes and investigations, economic consulting, e-discovery software and services, reputation management, and transaction advisory when confronting the critical issues that shape their futures.  We are involved in high-stakes, fast-paced computer forensics projects from around the world.  Our workforce of more than 3,500 employees includes numerous PhDs, MBAs, CPAs, CFEs, JDs, and technologists with expertise across a broad range of industries including financial services, retail, healthcare, energy, media, and communications. If you are interested in becoming part of a fast growing company and helping shape its future, read on.
 
ABOUT THE OPPORTUNITY:
The Salesforce CRM Administrator will manage day-to-day operations of Salesforce.com CRM system. Day-to-Day operations will include but are not limited to, system administration, user support/training, change control, interface design, data quality, requirements gathering and reporting. The CRM administrator will report to the CRM Architect but he or she will take direction from the Director of CS Service Delivery. This position provides a tremendous opportunity for a dynamic, forward thinking individual to provide FTI with critical system support and focuses on the growth, development, integration and maintenance over our Salesforce.com CRM system.  This role can be located in either Annapolis, MD or Pittsburgh, PA.
 
PRIMARY DUTIES:     
  • Administration of the company’s Salesforce.com CRM instance and development of related processes; responsible for assisting with its adoption and ongoing success.
  • Administration functions include but are not limited to: user management, configuration, customization, report and dashboard development, data management, case (ticket) management, training, and support for AppExchange applications. Specific examples of Salesforce Administrations tasks include:
    • Customize Salesforce.com fields, page layouts, record types, searching, list views, queues, reports, and dashboards.
    • Maintain security such as user accounts, mobile user accounts, sharing rules, user roles, user profiles, field level security, content folder rights, groups, list view rights, and custom apex pages and classes, etc.
    • Maintain and create workflow rules, validation rules, formula fields, escalation rules, auto-assignment rules, etc.
    • Maintain overall system configuration, change control, and enhancements
    • Assist in developing and maintaining documentation on processes, policies, application configuration, and help related materials
    • Manage operational requests and troubleshoot issues, working with diverse user groups
    • Act as the primary point of contact for Salesforce users.
    • Manage instance to ensure data integrity
    • Maintain system metrics to track trends in usage and data integrity.
    • Manage the production of product and service-related training materials.
    • Conduct training of SalesForce.com to users. Present changes/system enhancements and overall training to diverse audiences.
    • Support the tracking and reporting of all Salesforce.com feature request(s) and development initiatives
    • Manage instance to ensure data integrity
    • Promote adoption of system throughout FTI
  • Specific examples of Salesforce Development tasks include:
    • Identify SalesForce.com usage problems and craft technical / communication plans to remedy.
    • Obtain and document requirements when needed
    • Develop/modify ad hoc reports and dashboards as requested
    • Develop/modify HTML email and java script templates to support custom and auto generated system responses
    • Design and build custom Salesforce objects
    • Manage mass imports and exports of data.
    • Willingness to learn Force.com development, and ability to assist in quality assuring in-house custom code.
    • Serve as back up for architect and understand all workflow and system process.
    • Consider new releases of Salesforce.com CRM functionality and assess applicability to FTI
  • Provide high quality support via both telephone and email.
  • Undertake additional analysis and reporting projects as directed by management
  • Work with project team to drive deliverables from vendors
  • Promotes and fosters a positive work environment
  • Ability to travel when requested up to 10%.
  • Other duties as assigned
 
BASIC QUALIFICATIONS: 
·         2 - 4 years technical support for web-based applications.
·         2 years previous experience or exposure to CRM/Helpdesk technologies.
·         2 years experience and proficiency with HTML, CSS, and JavaScript.
·         1 year experience with process analysis, ideally with experience in developing and documenting process flows, roles and responsibilities, defining requirements and translating them into system implementation.
·         B.S. or a B.A. college degree or commensurate work experience.
·         Salesforce.com Certified Administrator or 2+ years experience equivalent
 
PREFERRED SKILLS:
·         Working knowledge of relational databases design concepts and data management. Ability to work with data in complex spreadsheets and databases is required.
·         Understanding of Salesforce.
·         Basic understanding of Force.com and ability to maintain Force.com custom applications and code.
·         Previous Apex, Visual force development experience.
·         Previous experience programming in .NET.
·         MCSE or other MS certifications.
·         SQL 2005/2008 experience.
·         Webmaster / site experience a plus.
·         Proficiency with MS Office suite.
·         Outstanding analytical, business process development skills and problem solving skills.
·         Ability to troubleshoot system, process and data issues; ability to think clearly under pressure.
·         Flexible team player attitude willing to work extended hours when asked or when project needs arise.
·         Self motivated and detail oriented with excellent people and project management skills.
·         Demonstrated and proven ability to provide superior client service in demanding, deadline-driven situations.
·         Ability to effectively communicate and coordinate with senior business management and peers.
·         Possession of sufficient credit to facilitate travel if and when required.
 
POSITION CLASSIFICATION:   Exempt
 
FTI Consulting is an Equal Opportunity Employer
Apply using this link:
 
ABOUT THE COMPANY:
FTI Consulting is a global business advisory firm dedicated to helping organizations protect and enhance their enterprise value.  For over 25 years, FTI has brought insight and expertise to deliver successful resolution to the most challenging financial, litigation, and business-critical issues. FTI, recently ranked among Fortune magazine’s 100 Fastest-Growing Companies, is a leading global firm that organizations rely on for advice and solutions in the areas of corporate finance and restructuring, disputes and investigations, economic consulting, e-discovery software and services, reputation management, and transaction advisory when confronting the critical issues that shape their futures.  We are involved in high-stakes, fast-paced computer forensics projects from around the world.  Our workforce of more than 3,500 employees includes numerous PhDs, MBAs, CPAs, CFEs, JDs, and technologists with expertise across a broad range of industries including financial services, retail, healthcare, energy, media, and communications. If you are interested in becoming part of a fast growing company and helping shape its future, read on.
 
ABOUT THE OPPORTUNITY:
The Salesforce CRM Administrator will manage day-to-day operations of Salesforce.com CRM system. Day-to-Day operations will include but are not limited to, system administration, user support/training, change control, interface design, data quality, requirements gathering and reporting. The CRM administrator will report to the CRM Architect but he or she will take direction from the Director of CS Service Delivery. This position provides a tremendous opportunity for a dynamic, forward thinking individual to provide FTI with critical system support and focuses on the growth, development, integration and maintenance over our Salesforce.com CRM system.  This role can be located in either Annapolis, MD or Pittsburgh, PA.
 
PRIMARY DUTIES:     
  • Administration of the company’s Salesforce.com CRM instance and development of related processes; responsible for assisting with its adoption and ongoing success.
  • Administration functions include but are not limited to: user management, configuration, customization, report and dashboard development, data management, case (ticket) management, training, and support for AppExchange applications. Specific examples of Salesforce Administrations tasks include:
    • Customize Salesforce.com fields, page layouts, record types, searching, list views, queues, reports, and dashboards.
    • Maintain security such as user accounts, mobile user accounts, sharing rules, user roles, user profiles, field level security, content folder rights, groups, list view rights, and custom apex pages and classes, etc.
    • Maintain and create workflow rules, validation rules, formula fields, escalation rules, auto-assignment rules, etc.
    • Maintain overall system configuration, change control, and enhancements
    • Assist in developing and maintaining documentation on processes, policies, application configuration, and help related materials
    • Manage operational requests and troubleshoot issues, working with diverse user groups
    • Act as the primary point of contact for Salesforce users.
    • Manage instance to ensure data integrity
    • Maintain system metrics to track trends in usage and data integrity.
    • Manage the production of product and service-related training materials.
    • Conduct training of SalesForce.com to users. Present changes/system enhancements and overall training to diverse audiences.
    • Support the tracking and reporting of all Salesforce.com feature request(s) and development initiatives
    • Manage instance to ensure data integrity
    • Promote adoption of system throughout FTI
  • Specific examples of Salesforce Development tasks include:
    • Identify SalesForce.com usage problems and craft technical / communication plans to remedy.
    • Obtain and document requirements when needed
    • Develop/modify ad hoc reports and dashboards as requested
    • Develop/modify HTML email and java script templates to support custom and auto generated system responses
    • Design and build custom Salesforce objects
    • Manage mass imports and exports of data.
    • Willingness to learn Force.com development, and ability to assist in quality assuring in-house custom code.
    • Serve as back up for architect and understand all workflow and system process.
    • Consider new releases of Salesforce.com CRM functionality and assess applicability to FTI
  • Provide high quality support via both telephone and email.
  • Undertake additional analysis and reporting projects as directed by management
  • Work with project team to drive deliverables from vendors
  • Promotes and fosters a positive work environment
  • Ability to travel when requested up to 10%.
  • Other duties as assigned
 
BASIC QUALIFICATIONS: 
·         2 - 4 years technical support for web-based applications.
·         2 years previous experience or exposure to CRM/Helpdesk technologies.
·         2 years experience and proficiency with HTML, CSS, and JavaScript.
·         1 year experience with process analysis, ideally with experience in developing and documenting process flows, roles and responsibilities, defining requirements and translating them into system implementation.
·         B.S. or a B.A. college degree or commensurate work experience.
·         Salesforce.com Certified Administrator or 2+ years experience equivalent
 
PREFERRED SKILLS:
·         Working knowledge of relational databases design concepts and data management. Ability to work with data in complex spreadsheets and databases is required.
·         Understanding of Salesforce.
·         Basic understanding of Force.com and ability to maintain Force.com custom applications and code.
·         Previous Apex, Visual force development experience.
·         Previous experience programming in .NET.
·         MCSE or other MS certifications.
·         SQL 2005/2008 experience.
·         Webmaster / site experience a plus.
·         Proficiency with MS Office suite.
·         Outstanding analytical, business process development skills and problem solving skills.
·         Ability to troubleshoot system, process and data issues; ability to think clearly under pressure.
·         Flexible team player attitude willing to work extended hours when asked or when project needs arise.
·         Self motivated and detail oriented with excellent people and project management skills.
·         Demonstrated and proven ability to provide superior client service in demanding, deadline-driven situations.
·         Ability to effectively communicate and coordinate with senior business management and peers.
·         Possession of sufficient credit to facilitate travel if and when required.
 
POSITION CLASSIFICATION:   Exempt
 
FTI Consulting is an Equal Opportunity Employer

I've heard that the single emails created via Apex are no longer counted against the mass email limit, is this true?

 

-Rob

Message Edited by rcraven on 01-19-2010 04:06 PM

Were the governor limits for the count(), or new aggregate functions relaxed or, are developers and larger organizations still ham-boned by the 10,000 record governor limit? 

 

It's very hard to add aggregate averages or summary values to VF pages without implementing a M : D (master - details) relationship (which in a lot of use cases it's considered a bad practice to automatically delete child records), just to incorporate roll up summary fields (which itself had suffered from recursion issues in the past).

 

 

-Rob

Message Edited by rcraven on 01-19-2010 03:57 PM

Per the Winter 10 release, the describeGlobal result's "types" property is no longer supported in favour of a new "sobjects" property which returns an array of DescribeGloablSObjectResult.

 

However, the result set is always 0 records, because the "sobjects" property is always null.  Are we missing something, or is this a bug?

 

DescribeGlobalResult describe = Auth.getBinding().describeGlobal(); if (describe != null) { DescribeGlobalSObjectResult[] dgos = describe.sobjects; //replaces String[] types = describeGlobalResult.types; foreach (DescribeGlobalSObjectResult dgr in dgos) { System.Diagnostics.Debug.WriteLine("### TEST : " + dgr.ToString()); System.Diagnostics.Debug.WriteLine("### TEST : " + dgr.name.ToString()); } }

 

Message Edited by rcraven on 12-21-2009 06:18 PM

Per the Winter 10 release, the describeGlobal result's "types" property is no longer supported in favour of a new "sobjects" property which returns an array of DescribeGloablSObjectResult. 

 

However, the result set is always 0 records.  Are we missing something, or is this a bug?

 

DescribeGlobalResult describe = Auth.getBinding().describeGlobal(); if (describe != null) { DescribeGlobalSObjectResult[] dgos = describe.sobjects;

//replaces String[] types = describeGlobalResult.types;

 

foreach (DescribeGlobalSObjectResult dgr in dgos) { System.Diagnostics.Debug.WriteLine("### TEST : " + dgr.ToString()); System.Diagnostics.Debug.WriteLine("### TEST : " + dgr.name.ToString()); } }

 

Hi,
I am getting the mentioned error, while trying to edit some custom objects for a profile. As i checked it needs to have the permission " edit self service users" But i couldnt find that particular permission, and also it happened to me suddenly from yesterday, If any body has idea how to resolve it? Thnx

Hi, I want to auto forward a email in background when it is sent. The email may contain attachment. We know that each attachment in an email is stored as a record of Attachment object. Hence whenever we send any email with attachment, A new record is created of Attachment object, which is happening. But my problem is that, if I write a After Insert trigger on Atatchment object but it is not firing. I can't figure out any plausible explaination for that. Did someone else faced the same issue?

 

Hi All, does anyone have a sample page to display a content tree? I have a requirement to display a content tree with links to vf pages based on a XML index. I haven't found any example. Would anyone who has worked with something like this be so kind to share a sample to help me get started?

 

Example:

 

http://wiki.efrontlearning.net/@api/deki/files/384/=content_tree_qg.png

 

Thanks in advance!

 

 

In our Sandbox environment, "cs13", we have noticed that our unit tests for apex controller classes have started failing due to the below error message:

- Method does not exist or incorrect signature: Test.set CurrentPage(System.PageReference)

We're using API version 24.0. This is an internal Salesforce object "Test" and a standard Salesforce method, "setCurrentPage()". This method is used by a unit test to set the current page reference to test against, without it, code coverage is 0% for any apex controller class.

This is impacting our current ability to deploy code to production, which we would like to do this weekend.

 

Can anybody shed some light on this problem.  Am I using the wrong API version?

We are experiencing odd behaviour in our Sandbox instance(s) [cs13] since 3/9/12.  

 

When switching user profiles (via Admin login link), and then navigating between standard pages and Visualforce pages. We were receiving internal system error message indicating that the URL for our Visualforce page is no longer valid?  In addition, in some cases, record updates on Visualforce custom pages were not saving edited values?  Worse, there is no issue(s) being reported in our Debug logs.   

 

We first discovered this error on 3/9/12 @ 3:15 p.m. EST, in our production environment (na3).  We called Salesforce basic support and opened a case to find out that they were aware of the issue and would notify us if the status changed or if the issue was resolved (this didn't happen).  In addition, I'm left wondering if Salesforce basic support knew about it, why this never showed up on the trust.salesforce.com site?

 

If anyone knows of a work-around, please let us know, thanks!

 

 

 

Hello, I am new to writing tests - working off of the template in how to write good unit tests. This is my effort but I get the error Invalid id value for this SObject type:

 

public class ActiveAffiliationsTriggerTest

static testMethod void ActiveAffiliationsTest() 

{     
    // Set up the Contact record.   

Contact c = new Contact(FirstName='Test Contact', LastName ='Test Last');   

insert c;


   // Verify that the initial state is as expected.   

c = [SELECT DVA_Affiliation_MDA_and_Active__c          

FROM Contact          

WHERE Id = :c.Id];   

System.assertEquals(null, c.DVA_Affiliation_MDA_and_Active__c);


   // Set up the Affiliation record.   

String affiliationName = 'Test Affiliation';   

Affiliation__c a = new Affiliation__c(Id=c.Id,                                     

Active__c=TRUE);


   // Insert Affiliation.   

insert a;    


   // Verify that the results are as expected.   

c = [SELECT FirstName, LastName, DVA_Affiliation_MDA_and_Active__c          

FROM Contact        

 WHERE Id = :c.Id];     

}

}

 

contact is contact

Affliliation__c is a related object where Contact is the master - contact can have more than one Affiliation record

DVA_Affiliation_MDA_and_Active__c is a number field the trigger fills in calulating on the Contact record how many affiliations the contact has

 

  • July 28, 2011
  • Like
  • 0

We're running a dynamic dashboard, and although there are options to limit cases by ownership...i.e. "my cases" or "my teams cases"...  Does anyone know of any literal value we can use to specify "my created" or "my closed" cases instead of filtering based on ownership of cases.  We've done this in the past using parameter based reports but not sure if we can pass the running user of the dashboard... or grab the current user as a literal in the report filter criteria.

can somebody guide me how to import attachment file into SFDC environment through apex data loader? i need step by step procedure..

  • July 20, 2011
  • Like
  • 0

I'm trying to determine all the senarios where sending email via Apex counts against a SF Organization's mass email govener limits?

 

The Apex Reference Documentation (PDF), pg. 341:

 

  • Single email messages sent with the sendEmail method count against the sending organization's daily single email limit.  When this limit is reached, calls to the sendEmail method using SingleEmailMessage are rejected, and the user receives a SINGLE_EMAIL_LIMIT_EXCEEDED error code. However, single emails sent through the application are allowed.

The Apex Reference Documentation (PDF), pg. 192-193:

 

  • Outbound Email: Limits for Single and Mass Email Sent Using Apex..  You can send single emails to a maximum of 1,000 external email addresses per day based on Greenwich Mean Time.  You can send an unlimited amount of email to your internal users.

 

Are there any instances where using Messaging.sendEmail does NOT count against a Organization's mass email limits?

 

So I am currently using Sites with a small 5/6 page site.  Off of two of the pages, I have a link that will allow the user to print the page.  I use renderas=PDF to make it easy for them to print.  The problem is, I want to dynaically display imags on that page and I have found out that JavaScript does not work when creating PDFs.

 

I dynamically display images on the standard page today.  Users will upload images to the 'Documents' on that record and I cycle through the images and display them in a table on the visualforce page via JS.  This is helpful because I do not have to know the name of the image.  Basically a poor mans CMS ....

 

Does anyone know how I could display images on a page that is being rendered as a PDF when I don't know the name of the image?

i created a time card for 2 projects.now i want to place a combo box which will automatically populate project names and when i select one project it should display the corresponding time card.The following code will show a combo box but it  is static and didnt rerieve the project name dynamically.

 

 

<apex:selectList id="chooseproject" value="{!project1}" size="1" multiselect="false">
<apex:selectOption itemValue="TimeCardManagement" itemLabel="TimeCardManagement"/>
<apex:selectOption itemValue="TimeCard" itemLabel="TimeCard"/>
</apex:selectList>

 Following is my VF code

 

<apex:page showHeader="false" sidebar="false" controller="CTRLNEWASSIGNMENT">
 <font size="3" color="Red"> <marquee behavior="alternate">You are now viewing the Time Card</marquee> </font> 
 <center>  <br/><br/><br/><br/><br/>  <h1> <font size="4" color="Grey"> WELCOME USER,PLEASE ENTER THE WORKING HOURS</font> </h1> <br/><br/>
 <h1><font size="4" color="Green">Today is {! Day(TODAY())}-{! Month(TODAY())}-{!Year(TODAY())}</font></h1></center><br/><br/><br/><br/><br/><br/>
 <apex:form >
  <br/><br/>

 <center><table>
     <tr>
         
     </tr>
     <tr>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;<font size="4" color="blue">Time Card</font></td>
        
         <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mon-{! day(TODAY())}-{! Year(Today())}</td>
         <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tus-{! day(TODAY()+1)}-{! Year(Today())}</td>
         <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Wed-{! day(TODAY()+2)}-{! Year(Today())}</td>
         <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thu-{! day(TODAY()+3)}-{! Year(Today())}</td>
         <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fri-{! day(TODAY()+4)}-{! Year(Today())}</td>
         <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sat-{! day(TODAY()+5)}-{! Year(Today())}</td>
         <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sun-{! day(TODAY()+6)}-{! Year(Today())}</td>
         <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TOTAL </td>
            </tr>
     <tr>
         
         <td></td>
     </tr>
     <tr>
         <td>&nbsp;&nbsp;&nbsp;&nbsp;<font size="4" color="green">Project</font></td>
         <td></td>
     </tr>
     <tr>
         <td>&nbsp;&nbsp;&nbsp;&nbsp;<apex:inputText value="{!project1}"/></td>
         
         <td><apex:inputText value="{!mon}" size="12"/></td>
         <td><apex:inputText value="{!tus}" size="12"/></td>
         <td><apex:inputText value="{!wed}" size="12"/></td>
         <td><apex:inputText value="{!thu}" size="12"/></td>
         <td><apex:inputText value="{!fri}" size="12"/></td>
         <td><apex:inputText value="{!sat}" size="12"/></td>
         <td><apex:inputText value="{!sun}" size="12"/></td>
         <td><apex:inputText value="{!total}" size="12"/></td>
     </tr>
     <tr>
         <td>&nbsp;&nbsp;&nbsp;&nbsp;<apex:inputText value="{!project2}"/></td>
         
         <td><apex:inputText value="{!mon1}" size="12"/></td>
         <td><apex:inputText value="{!tus1}" size="12"/></td>
         <td><apex:inputText value="{!wed1}" size="12"/></td>
         <td><apex:inputText value="{!thu1}" size="12"/></td>
         <td><apex:inputText value="{!fri1}" size="12"/></td>
         <td><apex:inputText value="{!sat1}" size="12"/></td>
         <td><apex:inputText value="{!sun1}" size="12"/></td>
         <td><apex:inputText value="{!total1}" size="12"/></td>
     </tr>
     <tr>
     
      <center>
         <td><apex:commandButton value="Save" action="{! addto}"/></td>
         <td><apex:commandButton value="Clear Fields" action="{! clear}"/></td>
           <td><apex:commandButton value="Total Working Hours" action="{! total}"/></td><br></br>
                      
       </center>
     </tr>

    
 </table></center>
 
  <apex:selectList id="chooseproject" value="{!project1}" size="1" multiselect="false">
<apex:selectOption itemValue="TimeCardManagement" itemLabel="TimeCardManagement"/>
<apex:selectOption itemValue="TimeCard" itemLabel="TimeCard"/>
</apex:selectList>

<td><apex:commandButton value="View Timecard" action="{! view}"/></td>
 </apex:form>
</apex:page>

 Following is my apex code

 

public with sharing class CTRLNEWASSIGNMENT 
{

    public PageReference view() {
    
    return null;
        
    
}

   

          public CTRLNEWASSIGNMENT()
 
    {
        List<MyProject__c> pi = new  List<MyProject__c>();
        pi = [SELECT Name,ProjectDescription__c,ProjectID__c FROM  MyProject__c]; 
        
 }
    public PageReference clear() 
   
    {
              return null;
    }


    public PageReference addto() {
    
        TimeKeeper_c__c tc = new TimeKeeper_c__c();
        
        tc.SunHour__c = sun1;
        tc.SatHour__c = sat1;
        tc.MonHour__c = mon1;
        tc.TusHour__c = tus1;
        tc.WedHour__c = wed1;
        tc.ThuHour__c = thu1;
        tc.FriHour__c = fri1;
        
        insert tc;
        
 TimeKeeper_c__c tc1 = new TimeKeeper_c__c();

        tc1.SunHour__c = sun;
        tc1.SatHour__c = sat;
        tc1.MonHour__c = mon;
        tc1.TusHour__c = tus;
        tc1.WedHour__c = wed;
        tc1.ThuHour__c = thu;
        tc1.FriHour__c = fri;
        
        insert tc1;
        
        return null;
    }


    public Integer total1 { get; set; }

    public Integer sun1 { get; set; }

    public Integer sat1 { get; set; }

    public Integer fri1 { get; set; }

    public Integer thu1 { get; set; }

    public Integer wed1 { get; set; }

    public Integer tus1 { get; set; }

    public Integer mon1 { get; set; }

    public String project2 { get; set; }

    public Integer total { get; set; }

    public Integer sun { get; set; }

    public Integer sat { get; set; }

    public Integer fri { get; set; }

    public Integer thu { get; set; }

    public Integer wed { get; set; }

    public Integer tus { get; set; }

    public Integer mon { get; set; }

    public String project1 { get; set; }

    public PageReference total() {
    total =  Integer.valueOf(mon)+ Integer.valueOf(tus)+Integer.valueOf(wed)+Integer.valueOf(thu)+Integer.valueOf(fri)+Integer.valueOf(sat)+Integer.valueOf(sun);
     total1 = Integer.valueOf(mon1)+ Integer.valueOf(tus1)+Integer.valueOf(wed1)+Integer.valueOf(thu1)+Integer.valueOf(fri1)+Integer.valueOf(sat1)+Integer.valueOf(sun1);
        return null;
       
    }

}

 

 

 

 

Okay, this is a weird one. We have a custom page where we've reorganized the fields on the Contact object. We've essentially implemented our own quick edit solution with Javascript. When a user switches the page to edit mode (which just rerenders the container with the fields, swapping outputFields for inputFields) Firefox lags horribly when clicking from one field to another. There's probably a full two to three second delay between a click and the corresponding focus change.

 

I don't even really know how to go about troubleshooting this. In Chrome and Safari it's instantaneous, as you would expect. Some of the fields I'm showing on the page use fieldsets and some don't. I've tried commenting those out to see if it was stuck in some sort of loop. I tried showing the edit version by default (rather than the read version) thinking it might be something with that switch in JS. So far nothing has changed the behavior. 

 

Is this just a known problem that we haven't stumbled onto until now? Or is something seriously wrong that I should be able to find and fix?

 

 

 I have created two reports.

 

 First report finds the users who have "logged in today". Groups are created based on country values.

Second report finds the users who have "not logged in today".

 

 Now I want to merge both of these reports. In the same report , I need groups based on "country" only. So, for each country, I need to show two bars , one for "logged in today" users and other for "not logged in today" users.

 

Is it possible to generate such report?

How can i perform this through Combination charts?

What filter should i use? PLz help. Its urgent.

 

Thanks

 

Hi everyone,

 

We have a requirement to send a templated email to the manager of the currently logged in user, summarising several standard and custom fields that reside on the Event object. The email template has been defined in VisualForce and works when doing a merge test from the VisualForce email edit UI and I have written the Apex code below to do send the email itself.

 

Although the email is being sent at the right time and to the right person (which we're triggering via an AJAX call to the Apex class via a Custom Button), it is not correctly related to the Event record (its "relatedTo" object), so doesn't display any Event information.

 

Here's the Apex code that send the email:

 

global class EmailUtilities {

	WebService static boolean sendEventEmailToManager(Id eventId) {
		List<Messaging.SendEmailResult> results;
		
		// Ensure we are not going to exceed single send limits by sending this (throws System.LimitException)
		Messaging.reserveSingleEmailCapacity(1);
		
		// Retrieve the user record for this user, including their manager's user record Id
		User user = [Select Id, Name, ManagerId, Email From User Where Id = :UserInfo.getUserId()];
		
		if (user.ManagerId == null) {
			throw new ManagerNotSetException('User ' + user.Name + ' has no manager assigned in their user record.');
		}
		
		// Retrieve the template to be used
		EmailTemplate template = [SELECT id FROM EmailTemplate WHERE developerName = 'EventSummary'];
		
		// Create the message
		Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage();
		email.setSenderDisplayName(UserInfo.getName());
		email.setReplyTo(user.Email);
		email.setWhatId(eventId);
		email.setSaveAsActivity(false);
		email.setTargetObjectId(user.ManagerId);
		email.setTemplateId(template.Id);
	
		// Send a blind copy to the sender
		email.setBccSender(true);
		
		// Send email
		results = Messaging.sendEmail(new Messaging.SingleEmailMessage[] { email });
		
		return results.get(0).isSuccess();
	}
	
	class ManagerNotSetException extends Exception {}
}

 

From looking at the documentation, the WhatId cannot use an Event object, but if we can't use this, then I'm at a loss as to how an Event record to this email template within Apex! Perhaps there is no way to do it, but it seems particularly limiting if so.

 

Does anyone have any pointers? Thanks in advance for any help anyone is able to provide.

  • March 16, 2011
  • Like
  • 0

I've heard that the single emails created via Apex are no longer counted against the mass email limit, is this true?

 

-Rob

Message Edited by rcraven on 01-19-2010 04:06 PM

Were the governor limits for the count(), or new aggregate functions relaxed or, are developers and larger organizations still ham-boned by the 10,000 record governor limit? 

 

It's very hard to add aggregate averages or summary values to VF pages without implementing a M : D (master - details) relationship (which in a lot of use cases it's considered a bad practice to automatically delete child records), just to incorporate roll up summary fields (which itself had suffered from recursion issues in the past).

 

 

-Rob

Message Edited by rcraven on 01-19-2010 03:57 PM

Hi,

I need to put a custom related list on the account detail page and put the Hover link on the top of the page for the custom related list.

 

I was able to do the custom related list displayed on the bottom of the Account detail page wiring a standard controller extension and visula force page.

 

Now the problem is How do I place the Hover link on the top of the page for the custom list? I saw couple of threads for the above, but the hover links issue was never discussed?.

 

Can any one please guide me how can I do this.

 

Thank you.

I am having issues using the immediate attribute within actionSupport. The documentation says that "If set to true, the action happens immediately and any field validation rules are skipped." It doesn't mention anything about rerendering or data binding so I'm a little confused. Here is my problem:

I have a select list of contacts. When a contact is selected, a form with inputFields is rerendered to display the data of the selected contact. Some of these fields are required. If a field is null and you try to select a different contact you get an error message that the field is required. This is no good, so I added the immediate attribute to the actionSupport but now it does not appear to be rerendering the form.

Any ideas, suggestions?

Page:
Code:
<apex:page controller="input" >

<apex:form >
  <apex:selectList value="{!contactID}" size="5">
     <apex:selectOptions value="{!contacts}" />
     <apex:actionSupport event="onchange" action="{!updateContact}" rerender="form" immediate="true"/>
  </apex:selectList>
  <apex:pageBlock >
     <apex:panelGrid columns="2" id="form">
        Full Name: <apex:outputField value="{!c.Name}"/>
        Email: <apex:inputField value="{!c.Email}" required="true"/>
        Title: <apex:inputField value="{!c.Title}" required="true"/>
        Phone: <apex:inputField value="{!c.Phone}" required="true"/>
     </apex:panelGrid>  
  </apex:pageBlock>
</apex:form>

</apex:page>

Controller:
Code:
public class input {
    public String ContactId {set; get;}
    public Contact c {set; get;}
    private List<SelectOption> contacts;
    private Map<Id,Contact> contactMap = new Map<Id,Contact>();

    public List<SelectOption> getContacts(){
       if(contacts == null){
           Contact [] cons = [select Id, Name, Title, FirstName, LastName, Phone, Email from Contact limit 10];
           contactId = cons[0].Id;
           contacts = new List<SelectOption>();
    
           for(Contact c : cons){
              contacts.add(new SelectOption(c.ID,c.Name));
              contactMap.put(c.Id,c);
           }
       }
       return contacts;
    }
   
    public PageReference updateContact(){
        c = contactMap.get(ContactID);
        return null;
    }      
}