-
ChatterFeed
-
0Best Answers
-
1Likes Received
-
0Likes Given
-
11Questions
-
18Replies
Unknown property 'VisualforceArrayList. error in apexOutput panel.
<messaging:emailTemplate subject="Test" recipientType="Contact" relatedToType="Contact"> <messaging:htmlEmailBody > <apex:repeat value="{!relatedTo.Member_Schools_Serviced__r}" var="lineItem"> <apex:outputPanel rendered="{!lineItem.Term__c = '2017-2018'&& lineItem.School_Term_Progress_Reports_del__r.Support_a_salad_bar__c = FALSE}"> {!lineItem.Name} </apex:outputPanel> </apex:repeat> </messaging:htmlEmailBody> </messaging:emailTemplate>
- Medhanie Habte 37
- April 14, 2018
- Like
- 0
- Continue reading or reply
Lightning Component Framework Specialist Superbadge Step 8
Challenge Not yet complete... here's what's wrong:
TheFiveStarRating component doesn't have a change event listener that invokes a controller function named onValueChange. onValueChange should fire when the value attribute of the component is changed.
<aura:component implements="flexipage:availableForAllPageTypes"> <aura:attribute name="value" type="Integer" default="0"/> <aura:attribute name="readOnly" type="boolean"/> <aura:handler name="onValueChange" value="{!v.value}" action="{!c.onValueChange}"/> </aura:component>
({ afterScriptsLoaded : function(component, event, helper) { // var domEl = [get dom element of rating area] // var currentRating = [get value attribute of component] // var readOnly = [get readonly attribute of component] var maxRating = 5; var callback = function(rating) { component.set('v.value',rating); } component.ratingObj = rating(domEl,currentRating,maxRating,callback,readOnly); }, onValueChange: function(component,event,helper) { if (component.ratingObj) { var value = component.get('v.value'); component.ratingObj.setRating(value,false); } } })
- Medhanie Habte 37
- November 18, 2017
- Like
- 0
- Continue reading or reply
Adding an event in the Lighting Component Superbadge - Step 4
I've written it like this.
<aura:event type="COMPONENT"> <aura:attribute name="formsubmit" type="Boat__c[]"/> </aura:event>
But get this message.
Challenge Not yet complete... here's what's wrong: The FormSubmit event isn't configured correctly. There is something missing or improperly configured in the FormSubmit.evt file.
- Medhanie Habte 37
- November 14, 2017
- Like
- 0
- Continue reading or reply
Lightning Component Superbadg - Issue with Step 3
I am encountering this message, although my class is written as shown below.
Challenge Not yet complete... here's what's wrong:
We couldn't find agetBoats() method with the boatTypeId parameter in the BoatSearchResults Apex controller. Make sure the getBoats() method uses the string data type so that you can pass empty values to it.
public with sharing class BoatSearchResults { @AuraEnabled public static String getBoats(Id boatTypeId) { BoatType__c boat = [SELECT Id FROM BoatType__c WHERE Id = :boatTypeId]; return string.valueOf(boat); } }
- Medhanie Habte 37
- November 14, 2017
- Like
- 0
- Continue reading or reply
Enabling Clickjack protections causing Visualforce pages to not appear
My code is as below.
<apex:page standardController="Account" sidebar="false" showHeader="false"> <GBLite:EmbedComponent baseGridUrl="{!$Page.GBLite__Grid}" /> <iframe id="gridFrame" scrolling="auto" height="480" width="100%" frameborder="0" src="{!gridPage}gname=Moves Managed Tasks&id={!Account.Id}&sh=0&ssb=0&sbb=1&sfname=default"></iframe> </apex:page>
- Medhanie Habte 37
- September 16, 2017
- Like
- 0
- Continue reading or reply
Bulkify a trigger to assign WhoId from an Email Message to a Task
Greetings, I've created this trigger which creates a task each time an email message is sent. Now I understand that may result in a duplicate task as email messages create tasks, but we wanted to figure a workaround that will allow creating tasks that can be populated on some custom fields and reports we have specific to a business process.
I feel good about what we have, but am wondering if there is a way to bulify the trigger by moving the SOQL query into a list, so I don't have to query within the trigger?
trigger EmailToTask on EmailMessage (after insert) { for (EmailMessage e : Trigger.new) { if (e.RelatedToId != NULL) { Task t = new Task(); t.ActivityDate = date.today(); t.Description = e.TextBody; t.Move_Type__c = 'Personal Note/Email from Donor'; t.Priority = 'Normal'; t.Status = 'Completed'; t.Subject = e.Subject; t.WhatId = e.RelatedToId; t.WhoId = [SELECT Id FROM Contact WHERE Email = :e.ToAddress OR npe01__WorkEmail__c = :e.ToAddress OR npe01__HomeEmail__c = :e.ToAddress].Id; insert t; } } }
- Medhanie Habte 37
- July 05, 2017
- Like
- 0
- Continue reading or reply
Automatically assign WhatID to Contact's Account Record when Composing Gmail
Some of our users currently use the Compose Gmail button on contact records to send an email via Gmail which creates a completed activity in Salesforce. However, we are wondering if there is a way to automatically assign the WhatId to the contact's account record based on the WhoID being a contact. It's tricky as we're dealing with a polymorphic field, but wanted to know if there are any workarounds to address. We commonly use Account records and have built custom lookup fields for other objects such as opportunities, cases, et al, which allows us to exclusively handle records in those objects.
Hope it helps,
- Medhanie Habte 37
- June 13, 2017
- Like
- 0
- Continue reading or reply
Issues setting up Social Sign-On with Google
I am setting up social sign on in a developer org to allow internal users to sign on with Google. I've opted to go with the autogenerated method, however, when I attempt to login with my Google account. I encounter a "User Not Found" Error. I have my RegHandlerClass created below. Any steps I should take?
My federation ID matches my email address if that helps.
//TODO:This autogenerated class includes the basics for a Registration //Handler class. You will need to customize it to ensure it meets your needs and //the data provided by the third party. global class AutocreatedRegHandler1492450757085 implements Auth.RegistrationHandler{ global boolean canCreateUser(Auth.UserData data) { //TODO: Check whether we want to allow creation of a user with this data //Set<String> s = new Set<String>{'usernamea', 'usernameb', 'usernamec'}; //if(s.contains(data.username)) { //return true; //} return false; } global User createUser(Id portalId, Auth.UserData data){ if(!canCreateUser(data)) { //Returning null or throwing an exception fails the SSO flow return null; } //The user is authorized, so create their Salesforce user User u = new User(); Profile p = [SELECT Id FROM profile WHERE name='Standard User']; //TODO: Customize the username. Also check that the username doesn't already exist and //possibly ensure there are enough org licenses to create a user. Must be 80 characters //or less. u.username = data.username + '@myorg.com'; u.email = data.email; u.lastName = data.lastName; u.firstName = data.firstName; String alias = data.username; //Alias must be 8 characters or less if(alias.length() > 8) { alias = alias.substring(0, 8); } u.alias = alias; u.languagelocalekey = UserInfo.getLocale(); u.localesidkey = UserInfo.getLocale(); u.emailEncodingKey = 'UTF-8'; u.timeZoneSidKey = 'America/Los_Angeles'; u.profileId = p.Id; return u; } global void updateUser(Id userId, Id portalId, Auth.UserData data){ User u = new User(id=userId); //TODO: Customize the username. Must be 80 characters or less. //u.username = data.username + '@myorg.com'; u.email = data.email; u.lastName = data.lastName; u.firstName = data.firstName; //String alias = data.username; //Alias must be 8 characters or less //if(alias.length() > 8) { //alias = alias.substring(0, 8); //} //u.alias = alias; update(u); } }
- Medhanie Habte 37
- April 17, 2017
- Like
- 0
- Continue reading or reply
Flow Error: Unhandled Fault (happening in a recently merged record)
39.0 APEX_CODE,ERROR;APEX_PROFILING,INFO;CALLOUT,FINEST;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,FINER;WAVE,ERROR;WORKFLOW,ERROR 21:54:17.0 (83548)|USER_INFO|[EXTERNAL]|005XXXXXXXXX|XXXXXXXXX@XXXXX.com|Pacific Standard Time|GMT-07:00 21:54:17.0 (154735)|EXECUTION_STARTED 21:54:17.0 (161449)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:01IA0000002K1qz 21:54:17.107 (107801764)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:01IA0000002K1qz 21:54:17.308 (308389351)|FLOW_ELEMENT_ERROR|The flow tried to update these records: a0l1200000AJIt2AAH. This error occurred: ALL_OR_NONE_OPERATION_ROLLED_BACK: Record rolled back because not all records were valid and the request was using AllOrNone header. For details, see <a href='https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_concepts_core_data_objects.htm#'>API Exceptions</a>.|FlowRecordUpdate|Update_Member_School_Services 21:54:17.308 (368304171)|FLOW_ELEMENT_ERROR|An error occurred when executing a flow interview. |FlowActionCall|myRule_1_A1 21:54:17.107 (387298617)|WF_FLOW_ACTION_ERROR|09L12000000Cc3M|30012000000LKtq|Error executing flow: Sync_Member_School_Service_and_School_Term, FlowDefId: 30012000000LKtq, FlowVersionId: 30112000000LAS7 21:54:17.107 (387319418)|WF_FLOW_ACTION_ERROR_DETAIL|<b>An unhandled fault has occurred in this flow</b><br>An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. 21:54:17.107 (387413983)|CODE_UNIT_FINISHED|Workflow:01IA0000002K1qz 21:54:17.390 (390262240)|FLOW_ELEMENT_ERROR|The flow tried to update these records: null. This error occurred: CANNOT_EXECUTE_FLOW_TRIGGER: The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 30112000000LAS7. Flow error messages: <b>An unhandled fault has occurred in this flow</b><br>An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Contact your administrator for help.. For details, see <a href='https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_concepts_core_data_objects.htm#'>API Exceptions</a>.|FlowRecordUpdate|Update_Member_School_Services 21:54:17.390 (410086409)|FLOW_ELEMENT_ERROR|An error occurred when executing a flow interview. |FlowActionCall|myRule_1_A1 21:54:17.0 (428347702)|WF_FLOW_ACTION_ERROR|09L12000000Cc3M|30012000000LKtq|Error executing flow: Sync_Member_School_Service_and_School_Term, FlowDefId: 30012000000LKtq, FlowVersionId: 30112000000LAS7 21:54:17.0 (428369343)|WF_FLOW_ACTION_ERROR_DETAIL|<b>An unhandled fault has occurred in this flow</b><br>An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. 21:54:17.0 (428470994)|CODE_UNIT_FINISHED|Workflow:01IA0000002K1qz 21:54:17.0 (429415510)|EXECUTION_FINISHED
Here's what the flow interview looks like.
Error element Update_Member_School_Services (FlowRecordUpdate). The flow tried to update these records: null. This error occurred: CANNOT_EXECUTE_FLOW_TRIGGER: The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 30112000000LAS7. Flow error messages: An unhandled fault has occurred in this flow An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Contact your administrator for help.. For details, see API Exceptions. This report lists the elements that the flow interview executed. The report is a beta feature. We welcome your feedback on IdeaExchange. Flow Details Flow Name: Delete_Member_School_Service_Or_Term_Sync Type: Flow Version: 9 Status: Active Flow Interview Details Interview Label: Delete Member School Service Or Term Sync 2/16/2017 10:43 AM Current User: Start time: 2/16/2017 10:43 AM Duration: 4 seconds How the Interview Started started the flow interview. Some of this flow's variables were set when the interview started. DeleteMemberSchoolServiceId = a0l12000005NmudAAC DECISION: CheckVariables Executed this outcome: MemberSchoolServiceIdIsNotNull Outcome conditions: and 1. {!DeleteMemberSchoolServiceId} (a0l12000005NmudAAC) Does not equal null Logic: All conditions must be true (AND) SCREEN: Confirm_Delete_Member Display Text: ConfirmDeleteMessage Value at run time: Are you sure you want to delete this Record? This will resync the At Depth field across Member School Services and the Member Names field on the School Term Selected Navigation Button: NEXT RECORD QUERY: LookupMemberSchoolService Find one Member_School_Service_Term__c record where: Id Equals {!DeleteMemberSchoolServiceId} (a0l12000005NmudAAC) Result Successfully found record. {!MemberSchoolServiceToDelete.Id} = a0l12000005NmudAAC {!MemberSchoolServiceToDelete.School_Served__c} = 0011200001K6042AAB {!MemberSchoolServiceToDelete.Term__c} = 2016-2017 FAST LOOKUP: FindSchoolTermForFlowFromMember Find all School_Term__c records where: Term__c Equals {!MemberSchoolServiceToDelete.Term__c} (2016-2017) School__c Equals {!MemberSchoolServiceToDelete.School_Served__c} (0011200001K6042AAB) Assign those records to {!SchoolTermForFlow}. Save these field values in the variable: Id Result Successfully found records. FAST DELETE: DeleteMemberSchoolService Delete Member_School_Service_Term__c records whose IDs are stored in {!MemberSchoolServiceToDelete}. Variable Values [Id=a0l12000005NmudAAC,School_Served__c=0011200001K6042AAB,Term__c=2016-2017] Result All records whose IDs are in {!MemberSchoolServiceToDelete} are ready to be deleted when the next Screen or Wait element is executed or when the interview finishes. DECISION: CheckTerm Executed this outcome: TermIsNotNull Outcome conditions: and 1. {!SchoolTermForFlow} (a0m12000001kyO1AAI) Is null false Logic: All conditions must be true (AND) SUBFLOW: Run_Flow Enter flow Sync_School_Term_and_Member_School_Service version 24. Inputs: SchoolTermId = {!SchoolTermForFlow.Id} (a0m12000001kyO1AAI) DECISION: Check_Variables Executed this outcome: SchoolTermIDIsNotNull Outcome conditions: and 1. {!SchoolTermId} (a0m12000001kyO1AAI) Does not equal null Logic: All conditions must be true (AND) RECORD QUERY: Lookup_School_Term_From_ID Find one School_Term__c record where: Id Equals {!SchoolTermId} (a0m12000001kyO1AAI) Result Successfully found record. {!SchoolTerm.At_Depth__c} = true {!SchoolTerm.Id} = a0m12000001kyO1AAI {!SchoolTerm.School__c} = 0011200001K6042AAB {!SchoolTerm.Service_Member_Names__c} = Allison Villa, Paige Tester {!SchoolTerm.Term__c} = 2016-2017 FAST LOOKUP: Find_Other_Member_School_Services Find all Member_School_Service_Term__c records where: Term__c Equals {!SchoolTerm.Term__c} (2016-2017) School_Served__c Equals {!SchoolTerm.School__c} (0011200001K6042AAB) Assign those records to {!MemberSchoolServices}. Save these field values in the variable: Member_Term__c, School_Served__c, Term__c, At_Depth__c, Service_Member_Name__c, Id Result Successfully found records. LOOP: Loop_Through_Member_School_Service Loop Through: [a0l12000005NmuiAAC,a0l12000005NmunAAC,a0l12000005NmusAAC,a0l12000005NmuxAAC,a0l12000005Nmv2AAC,a0l1200000AJIsxAAH,a0l1200000AJIt2AAH] Iteration: 0 Current value of {!MemberSchoolService}: a0l12000005NmuiAAC ASSIGNMENT: Mark_At_Depth {!MemberSchoolService.At_Depth__c} Equals {!SetAtDepth} {!ServiceMemberNames} Equals {!AddName} Result {!MemberSchoolService.At_Depth__c} = "true" {!ServiceMemberNames} = "Paige Tester" ASSIGNMENT: Add_Member_School_Service_to_Updated_Collection {!UpdatedMemberSchoolServices} Add {!MemberSchoolService} Result {!UpdatedMemberSchoolServices} = "[a0l12000005NmuiAAC]" LOOP: Loop_Through_Member_School_Service Loop Through: [a0l12000005NmuiAAC,a0l12000005NmunAAC,a0l12000005NmusAAC,a0l12000005NmuxAAC,a0l12000005Nmv2AAC,a0l1200000AJIsxAAH,a0l1200000AJIt2AAH] Iteration: 1 Current value of {!MemberSchoolService}: a0l12000005NmunAAC ASSIGNMENT: Mark_At_Depth {!MemberSchoolService.At_Depth__c} Equals {!SetAtDepth} {!ServiceMemberNames} Equals {!AddName} Result {!MemberSchoolService.At_Depth__c} = "true" {!ServiceMemberNames} = "Paige Tester, Allison Villa" ASSIGNMENT: Add_Member_School_Service_to_Updated_Collection {!UpdatedMemberSchoolServices} Add {!MemberSchoolService} Result {!UpdatedMemberSchoolServices} = "[a0l12000005NmuiAAC,a0l12000005NmunAAC]" LOOP: Loop_Through_Member_School_Service Loop Through: [a0l12000005NmuiAAC,a0l12000005NmunAAC,a0l12000005NmusAAC,a0l12000005NmuxAAC,a0l12000005Nmv2AAC,a0l1200000AJIsxAAH,a0l1200000AJIt2AAH] Iteration: 2 Current value of {!MemberSchoolService}: a0l12000005NmusAAC ASSIGNMENT: Mark_At_Depth {!MemberSchoolService.At_Depth__c} Equals {!SetAtDepth} {!ServiceMemberNames} Equals {!AddName} Result {!MemberSchoolService.At_Depth__c} = "true" {!ServiceMemberNames} = "Paige Tester, Allison Villa, Paige Tester" ASSIGNMENT: Add_Member_School_Service_to_Updated_Collection {!UpdatedMemberSchoolServices} Add {!MemberSchoolService} Result {!UpdatedMemberSchoolServices} = "[a0l12000005NmuiAAC,a0l12000005NmunAAC,a0l12000005NmusAAC]" LOOP: Loop_Through_Member_School_Service Loop Through: [a0l12000005NmuiAAC,a0l12000005NmunAAC,a0l12000005NmusAAC,a0l12000005NmuxAAC,a0l12000005Nmv2AAC,a0l1200000AJIsxAAH,a0l1200000AJIt2AAH] Iteration: 3 Current value of {!MemberSchoolService}: a0l12000005NmuxAAC ASSIGNMENT: Mark_At_Depth {!MemberSchoolService.At_Depth__c} Equals {!SetAtDepth} {!ServiceMemberNames} Equals {!AddName} Result {!MemberSchoolService.At_Depth__c} = "true" {!ServiceMemberNames} = "Paige Tester, Allison Villa, Paige Tester, Allison Villa" ASSIGNMENT: Add_Member_School_Service_to_Updated_Collection {!UpdatedMemberSchoolServices} Add {!MemberSchoolService} Result {!UpdatedMemberSchoolServices} = "[a0l12000005NmuiAAC,a0l12000005NmunAAC,a0l12000005NmusAAC,a0l12000005NmuxAAC]" LOOP: Loop_Through_Member_School_Service Loop Through: [a0l12000005NmuiAAC,a0l12000005NmunAAC,a0l12000005NmusAAC,a0l12000005NmuxAAC,a0l12000005Nmv2AAC,a0l1200000AJIsxAAH,a0l1200000AJIt2AAH] Iteration: 4 Current value of {!MemberSchoolService}: a0l12000005Nmv2AAC ASSIGNMENT: Mark_At_Depth {!MemberSchoolService.At_Depth__c} Equals {!SetAtDepth} {!ServiceMemberNames} Equals {!AddName} Result {!MemberSchoolService.At_Depth__c} = "true" {!ServiceMemberNames} = "Paige Tester, Allison Villa, Paige Tester, Allison Villa, Paige Tester" ASSIGNMENT: Add_Member_School_Service_to_Updated_Collection {!UpdatedMemberSchoolServices} Add {!MemberSchoolService} Result {!UpdatedMemberSchoolServices} = "[a0l12000005NmuiAAC,a0l12000005NmunAAC,a0l12000005NmusAAC,a0l12000005NmuxAAC,a0l12000005Nmv2AAC]" LOOP: Loop_Through_Member_School_Service Loop Through: [a0l12000005NmuiAAC,a0l12000005NmunAAC,a0l12000005NmusAAC,a0l12000005NmuxAAC,a0l12000005Nmv2AAC,a0l1200000AJIsxAAH,a0l1200000AJIt2AAH] Iteration: 5 Current value of {!MemberSchoolService}: a0l1200000AJIsxAAH ASSIGNMENT: Mark_At_Depth {!MemberSchoolService.At_Depth__c} Equals {!SetAtDepth} {!ServiceMemberNames} Equals {!AddName} Result {!MemberSchoolService.At_Depth__c} = "true" {!ServiceMemberNames} = "Paige Tester, Allison Villa, Paige Tester, Allison Villa, Paige Tester, Paige Tester" ASSIGNMENT: Add_Member_School_Service_to_Updated_Collection {!UpdatedMemberSchoolServices} Add {!MemberSchoolService} Result {!UpdatedMemberSchoolServices} = "[a0l12000005NmuiAAC,a0l12000005NmunAAC,a0l12000005NmusAAC,a0l12000005NmuxAAC,a0l12000005Nmv2AAC,a0l1200000AJIsxAAH]" LOOP: Loop_Through_Member_School_Service Loop Through: [a0l12000005NmuiAAC,a0l12000005NmunAAC,a0l12000005NmusAAC,a0l12000005NmuxAAC,a0l12000005Nmv2AAC,a0l1200000AJIsxAAH,a0l1200000AJIt2AAH] Iteration: 6 Current value of {!MemberSchoolService}: a0l1200000AJIt2AAH ASSIGNMENT: Mark_At_Depth {!MemberSchoolService.At_Depth__c} Equals {!SetAtDepth} {!ServiceMemberNames} Equals {!AddName} Result {!MemberSchoolService.At_Depth__c} = "true" {!ServiceMemberNames} = "Paige Tester, Allison Villa, Paige Tester, Allison Villa, Paige Tester, Paige Tester, Allison Villa" ASSIGNMENT: Add_Member_School_Service_to_Updated_Collection {!UpdatedMemberSchoolServices} Add {!MemberSchoolService} Result {!UpdatedMemberSchoolServices} = "[a0l12000005NmuiAAC,a0l12000005NmunAAC,a0l12000005NmusAAC,a0l12000005NmuxAAC,a0l12000005Nmv2AAC,a0l1200000AJIsxAAH,a0l1200000AJIt2AAH]" LOOP: Loop_Through_Member_School_Service End Loop. FAST UPDATE: Update_Member_School_Services Update Member_School_Service_Term__c records whose IDs are stored in {!UpdatedMemberSchoolServices}. Variable Values [Member_Term__c=a0I1200000JYvo2EAD,School_Served__c=0011200001K6042AAB,Term__c=2016-2017,At_Depth__c=true,Service_Member_Name__c=Paige Tester,Id=a0l12000005NmuiAAC] [Member_Term__c=a0I1200000JYvnxEAD,School_Served__c=0011200001K6042AAB,Term__c=2016-2017,At_Depth__c=true,Service_Member_Name__c=Allison Villa,Id=a0l12000005NmunAAC] [Member_Term__c=a0I1200000JYvo2EAD,School_Served__c=0011200001K6042AAB,Term__c=2016-2017,At_Depth__c=true,Service_Member_Name__c=Paige Tester,Id=a0l12000005NmusAAC] [Member_Term__c=a0I1200000JYvnxEAD,School_Served__c=0011200001K6042AAB,Term__c=2016-2017,At_Depth__c=true,Service_Member_Name__c=Allison Villa,Id=a0l12000005NmuxAAC] [Member_Term__c=a0I1200000JYvo2EAD,School_Served__c=0011200001K6042AAB,Term__c=2016-2017,At_Depth__c=true,Service_Member_Name__c=Paige Tester,Id=a0l12000005Nmv2AAC] [Member_Term__c=a0I1200000JYvo2EAD,School_Served__c=0011200001K6042AAB,Term__c=2016-2017,At_Depth__c=true,Service_Member_Name__c=Paige Tester,Id=a0l1200000AJIsxAAH] [Member_Term__c=a0I1200000JYvnxEAD,School_Served__c=0011200001K6042AAB,Term__c=2016-2017,At_Depth__c=true,Service_Member_Name__c=Allison Villa,Id=a0l1200000AJIt2AAH] Result Failed to update records whose IDs are in {!UpdatedMemberSchoolServices}. Error Occurred: The flow tried to update these records: null. This error occurred: CANNOT_EXECUTE_FLOW_TRIGGER: The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 30112000000LAS7. Flow error messages: An unhandled fault has occurred in this flow An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Contact your administrator for help.. For details, see API Exceptions.
We've been trying to determine what may be causing the flow error, but are uncertain as to what the message is conveying, are there are steps we may be missing. I can provide.
Hope it helps,
- Medhanie Habte 37
- March 28, 2017
- Like
- 0
- Continue reading or reply
Methods defined as TestMethod do not support Web service when developing trigger/class for echoSign integration
The goal with this trigger is to automate the sending of agreement templates from echoSign to the contact who will sign the agreement.
With the @future callout the trigger creates the object but does not run. However without it, it does. Needless to say without the @future callout the test class fails with the Methods defined as TestMetod do not support web service.
Are there any steps I should take.
Here's the class
public class AutoSendAdobeSign { public static void sendAgreement(Id temId, Id mteId) { try { System.debug('Calling AgreementTemplateService.load: ' + temid + ' - ' + mteid); echosign_dev1.AgreementTemplateService.load( temid , mteid ); } catch (Exception E) { System.debug('Exception: ' + e.getStackTraceString());} } }
The Trigger with the specified crtieria to run
trigger SendMTEviaAdobeSign on Member_Term_Evaluation__c (after update) { //This Class Automatically Sends an Adobe Sign Agreement for the Member_Term_Evaluation Custom Object //For the PY17 Member Term Evaluation, this variable can be updated according to Program Year String templateId; templateId = [SELECT Id FROM echosign_dev1__Agreement_Template__c WHERE Name = 'Evaluation' ].Id; { //Only send when the Signed By Supervisor field is checked off for(Member_Term_Evaluation__c mte: Trigger.new) { if(mte.Id != NULL && mte.Date_of_Review__c != NULL && mte.Signed_by_Supervisor__c != Trigger.oldMap.get(mte.Id).Signed_by_Supervisor__c ){ String masterId = mte.Id; AutoSendAdobeSign.sendAgreement(templateId, masterId); system.debug(mte.Service_Member__r.FirstName + ' and ' + mte.Lead_Supervisor__r.LastName + ' will be getting their member term evaluation on ' + mte.Date_of_Review__c.format() + ' .'); } } } }
Here is my Test Class
@isTest private class SendMTEviaAdobeSignTest { static testMethod void insertNewmasterId() { Test.startTest(); RecordType servicememberRT = [SELECT Id from RecordType WHERE sObjectType = 'Contact' AND Name = 'Service Member' LIMIT 1]; Echosign_dev1__SIGN_Merge_Mapping__c adobemm = new Echosign_dev1__SIGN_Merge_Mapping__c(); adobemm.Name = 'masterId'; adobemm.echosign_dev1__Default__c = FALSE; insert adobemm; Echosign_dev1__Agreement_Template__c adobeat = new Echosign_dev1__Agreement_Template__c(); adobeat.Name = 'PY17 Service Member Term Evaluation'; adobeat.Echosign_dev1__Auto_Send__c = TRUE; adobeat.Echosign_dev1__Name__c = 'Adobe Sign Agreement'; adobeat.Echosign_dev1__Signature_Type__c = 'e-Signature'; adobeat.Echosign_dev1__Language__c = 'English (United States)'; adobeat.Echosign_dev1__Merge_Mapping__c = adobemm.id; insert adobeat; Account servicesite = new Account(); servicesite.Name = 'Cheesy Does It'; servicesite.Type = 'Education'; servicesite.BillingStreet = '704 NE Sample Street'; servicesite.BillingCity = 'Portland'; servicesite.BillingState = 'Oregon'; servicesite.BillingPostalCode = '97212'; servicesite.Organization_Sub_type__c = 'School'; servicesite.Service_Site_Status__c = 'Active'; servicesite.School_Status__c = 'Active'; insert servicesite; Contact servicemember = new Contact(); servicemember.FirstName = 'Macaroni'; servicemember.LastName = 'Cheese'; servicemember.Npe01__HomeEmail__c = 'macandcheese@aolol.com'; servicemember.RecordTypeId = servicememberRT.Id; insert servicemember; Contact leadsupervisor = new Contact(); leadsupervisor.FirstName = 'Head'; leadsupervisor.LastName = 'Cheese'; leadsupervisor.Npe01__HomeEmail__c = 'saycheese@aolol.com'; leadsupervisor.Service_Site_Supervisor2__c = 'Active, Primary'; insert leadsupervisor; Member_Term__c mt = new Member_Term__c(); mt.Service_Member__c = servicemember.Id; mt.Service_Site__c = servicesite.Id; mt.Lead_Supervisor__c = leadsupervisor.Id; mt.Date_Contract_Signed__c = date.today(); mt.Date_Enrolled__c = date.today(); mt.School_1__c = 'Cheesy Does It'; mt.Healthy_Progress_Report_Area_1__c = 'B - Field trips, farmer and chef visits'; mt.Healthy_Progress_Report_Goal_1__c = 'Win a Million Bucks'; mt.Goal_1_Resources_Needed__c = 'A Million Bucks'; insert mt; Member_Term_Evaluation__c mte = new Member_Term_Evaluation__c(); mte.Member_Term__c = mt.Id; mte.Service_Member__c = servicemember.Id; mte.Lead_Supervisor__c = leadsupervisor.Id; mte.Date_of_Review__c = date.today(); mte.Signed_by_Service_Member__c = TRUE; mte.Signed_by_Supervisor__c = FALSE; insert mte; mte.Signed_by_Supervisor__c = TRUE; update mte; echosign_dev1__SIGN_Agreement__c e = new echosign_dev1__SIGN_Agreement__c(); e.Name = 'Service Member Term Evaluation'; e.ECHOSIGN_DEV1__AGREEMENTLOCALE__C = 'English (United States)'; e.ECHOSIGN_DEV1__SIGNATURETYPE__C = 'e-Signature'; e.ECHOSIGN_DEV1__STATUS__C = 'Out for Signature'; insert e; Test.stopTest(); } }
- Medhanie Habte 37
- January 28, 2017
- Like
- 1
- Continue reading or reply
Printing values in system.debug
My code is listed as
system.debug(mte.Service_Member__r.FirstName + ' and ' + mte.Lead_Supervisor__r.LastName + ' will be getting their member term evaluation on ' + mte.Date_of_Review__c.format() + ' for member term ' + mte.Member_Term__c);
The output appears as
null and null will be getting their member term evaluation on 1/25/17 for member term a0Ig0000007iekyEAA
My goal is to get the output to appear as a value rather than null, the trigger works nicely no less, but still.
Hope it helps.
Joe and Jane will be getting their member term evaluation of
- Medhanie Habte 37
- January 25, 2017
- Like
- 0
- Continue reading or reply
Methods defined as TestMethod do not support Web service when developing trigger/class for echoSign integration
The goal with this trigger is to automate the sending of agreement templates from echoSign to the contact who will sign the agreement.
With the @future callout the trigger creates the object but does not run. However without it, it does. Needless to say without the @future callout the test class fails with the Methods defined as TestMetod do not support web service.
Are there any steps I should take.
Here's the class
public class AutoSendAdobeSign { public static void sendAgreement(Id temId, Id mteId) { try { System.debug('Calling AgreementTemplateService.load: ' + temid + ' - ' + mteid); echosign_dev1.AgreementTemplateService.load( temid , mteid ); } catch (Exception E) { System.debug('Exception: ' + e.getStackTraceString());} } }
The Trigger with the specified crtieria to run
trigger SendMTEviaAdobeSign on Member_Term_Evaluation__c (after update) { //This Class Automatically Sends an Adobe Sign Agreement for the Member_Term_Evaluation Custom Object //For the PY17 Member Term Evaluation, this variable can be updated according to Program Year String templateId; templateId = [SELECT Id FROM echosign_dev1__Agreement_Template__c WHERE Name = 'Evaluation' ].Id; { //Only send when the Signed By Supervisor field is checked off for(Member_Term_Evaluation__c mte: Trigger.new) { if(mte.Id != NULL && mte.Date_of_Review__c != NULL && mte.Signed_by_Supervisor__c != Trigger.oldMap.get(mte.Id).Signed_by_Supervisor__c ){ String masterId = mte.Id; AutoSendAdobeSign.sendAgreement(templateId, masterId); system.debug(mte.Service_Member__r.FirstName + ' and ' + mte.Lead_Supervisor__r.LastName + ' will be getting their member term evaluation on ' + mte.Date_of_Review__c.format() + ' .'); } } } }
Here is my Test Class
@isTest private class SendMTEviaAdobeSignTest { static testMethod void insertNewmasterId() { Test.startTest(); RecordType servicememberRT = [SELECT Id from RecordType WHERE sObjectType = 'Contact' AND Name = 'Service Member' LIMIT 1]; Echosign_dev1__SIGN_Merge_Mapping__c adobemm = new Echosign_dev1__SIGN_Merge_Mapping__c(); adobemm.Name = 'masterId'; adobemm.echosign_dev1__Default__c = FALSE; insert adobemm; Echosign_dev1__Agreement_Template__c adobeat = new Echosign_dev1__Agreement_Template__c(); adobeat.Name = 'PY17 Service Member Term Evaluation'; adobeat.Echosign_dev1__Auto_Send__c = TRUE; adobeat.Echosign_dev1__Name__c = 'Adobe Sign Agreement'; adobeat.Echosign_dev1__Signature_Type__c = 'e-Signature'; adobeat.Echosign_dev1__Language__c = 'English (United States)'; adobeat.Echosign_dev1__Merge_Mapping__c = adobemm.id; insert adobeat; Account servicesite = new Account(); servicesite.Name = 'Cheesy Does It'; servicesite.Type = 'Education'; servicesite.BillingStreet = '704 NE Sample Street'; servicesite.BillingCity = 'Portland'; servicesite.BillingState = 'Oregon'; servicesite.BillingPostalCode = '97212'; servicesite.Organization_Sub_type__c = 'School'; servicesite.Service_Site_Status__c = 'Active'; servicesite.School_Status__c = 'Active'; insert servicesite; Contact servicemember = new Contact(); servicemember.FirstName = 'Macaroni'; servicemember.LastName = 'Cheese'; servicemember.Npe01__HomeEmail__c = 'macandcheese@aolol.com'; servicemember.RecordTypeId = servicememberRT.Id; insert servicemember; Contact leadsupervisor = new Contact(); leadsupervisor.FirstName = 'Head'; leadsupervisor.LastName = 'Cheese'; leadsupervisor.Npe01__HomeEmail__c = 'saycheese@aolol.com'; leadsupervisor.Service_Site_Supervisor2__c = 'Active, Primary'; insert leadsupervisor; Member_Term__c mt = new Member_Term__c(); mt.Service_Member__c = servicemember.Id; mt.Service_Site__c = servicesite.Id; mt.Lead_Supervisor__c = leadsupervisor.Id; mt.Date_Contract_Signed__c = date.today(); mt.Date_Enrolled__c = date.today(); mt.School_1__c = 'Cheesy Does It'; mt.Healthy_Progress_Report_Area_1__c = 'B - Field trips, farmer and chef visits'; mt.Healthy_Progress_Report_Goal_1__c = 'Win a Million Bucks'; mt.Goal_1_Resources_Needed__c = 'A Million Bucks'; insert mt; Member_Term_Evaluation__c mte = new Member_Term_Evaluation__c(); mte.Member_Term__c = mt.Id; mte.Service_Member__c = servicemember.Id; mte.Lead_Supervisor__c = leadsupervisor.Id; mte.Date_of_Review__c = date.today(); mte.Signed_by_Service_Member__c = TRUE; mte.Signed_by_Supervisor__c = FALSE; insert mte; mte.Signed_by_Supervisor__c = TRUE; update mte; echosign_dev1__SIGN_Agreement__c e = new echosign_dev1__SIGN_Agreement__c(); e.Name = 'Service Member Term Evaluation'; e.ECHOSIGN_DEV1__AGREEMENTLOCALE__C = 'English (United States)'; e.ECHOSIGN_DEV1__SIGNATURETYPE__C = 'e-Signature'; e.ECHOSIGN_DEV1__STATUS__C = 'Out for Signature'; insert e; Test.stopTest(); } }
- Medhanie Habte 37
- January 28, 2017
- Like
- 1
- Continue reading or reply
Unknown property 'VisualforceArrayList. error in apexOutput panel.
<messaging:emailTemplate subject="Test" recipientType="Contact" relatedToType="Contact"> <messaging:htmlEmailBody > <apex:repeat value="{!relatedTo.Member_Schools_Serviced__r}" var="lineItem"> <apex:outputPanel rendered="{!lineItem.Term__c = '2017-2018'&& lineItem.School_Term_Progress_Reports_del__r.Support_a_salad_bar__c = FALSE}"> {!lineItem.Name} </apex:outputPanel> </apex:repeat> </messaging:htmlEmailBody> </messaging:emailTemplate>
- Medhanie Habte 37
- April 14, 2018
- Like
- 0
- Continue reading or reply
what is use of system.start(),system.stop() in salesforce
- ramesh babu 114
- November 20, 2017
- Like
- 0
- Continue reading or reply
Lightning Component Framework Specialist SuperBadge - Issue with Step 8
- Sunil Sirangi
- November 16, 2017
- Like
- 0
- Continue reading or reply
Help with SOQL query - inner and outer selects same object
SELECT <fields> FROM OpportunityLineItem WHERE OpportunityId = <id> AND OpportunityId IN (SELECT OpportunityId FROM OpportunityLineItem WHERE ProductCode = <product_code_1>) AND ProductCode = <product_code_2>When I try the above with real values I get an error:
The inner and outer selects should not be on the same object type
Explanation:
I'm trying to recreate a report that shows fields from <product_2>, but only if the parent opportunity has products on it with <product_code_1>.
I can do this with a standard report, so I assume there must be a way to do it with SOQL. Here's a screenshot of what that looks like (Sales Price is an Opportunity Product field):
- Justin Mitchell
- November 14, 2017
- Like
- 0
- Continue reading or reply
Adding an event in the Lighting Component Superbadge - Step 4
I've written it like this.
<aura:event type="COMPONENT"> <aura:attribute name="formsubmit" type="Boat__c[]"/> </aura:event>
But get this message.
Challenge Not yet complete... here's what's wrong: The FormSubmit event isn't configured correctly. There is something missing or improperly configured in the FormSubmit.evt file.
- Medhanie Habte 37
- November 14, 2017
- Like
- 0
- Continue reading or reply
Lightning Component Superbadg - Issue with Step 3
I am encountering this message, although my class is written as shown below.
Challenge Not yet complete... here's what's wrong:
We couldn't find agetBoats() method with the boatTypeId parameter in the BoatSearchResults Apex controller. Make sure the getBoats() method uses the string data type so that you can pass empty values to it.
public with sharing class BoatSearchResults { @AuraEnabled public static String getBoats(Id boatTypeId) { BoatType__c boat = [SELECT Id FROM BoatType__c WHERE Id = :boatTypeId]; return string.valueOf(boat); } }
- Medhanie Habte 37
- November 14, 2017
- Like
- 0
- Continue reading or reply
Will someone revise the "Define Custom Big Objects" Trailhead unit?
As far as I can tell, I am successfully uploading the Customer_interaction_Big_Object.permissionSet through ForceIDE, as I get no errors after save to server, but then this permission set isn't available for me to assign to anyone when I look in the SFDC setup UI for permission sets.
And then I can't upload the data because the object isn't writable, presumably because I don't have permissions.
Morever, the sample "Apex" script isn't even valid Apex. For examples:
* There shouldn't be any angle brackets in: <Customer_Interaction__b> bo = new Customer_Interaction__b();
* Strings should use single quotes, not double quotes: bo.Account__c = "001R000000302D3";
* Play_Duration__c was defined as a number, not text (and again, double quotes!): bo.Play_Duration__c = "25";
Doesn't anyone give these articles a test drive before publishing them to people who will rely on them?
- Brian Kessler
- October 20, 2017
- Like
- 2
- Continue reading or reply
Enabling Clickjack protections causing Visualforce pages to not appear
My code is as below.
<apex:page standardController="Account" sidebar="false" showHeader="false"> <GBLite:EmbedComponent baseGridUrl="{!$Page.GBLite__Grid}" /> <iframe id="gridFrame" scrolling="auto" height="480" width="100%" frameborder="0" src="{!gridPage}gname=Moves Managed Tasks&id={!Account.Id}&sh=0&ssb=0&sbb=1&sfname=default"></iframe> </apex:page>
- Medhanie Habte 37
- September 16, 2017
- Like
- 0
- Continue reading or reply
Superbadge: Lightning Experience Rollout Specialist #10
- Cody Enboden 5
- September 06, 2017
- Like
- 0
- Continue reading or reply
Process Automation Specialist Step 2
- Elie.Rodrigue
- July 27, 2017
- Like
- 0
- Continue reading or reply
Bulkify a trigger to assign WhoId from an Email Message to a Task
Greetings, I've created this trigger which creates a task each time an email message is sent. Now I understand that may result in a duplicate task as email messages create tasks, but we wanted to figure a workaround that will allow creating tasks that can be populated on some custom fields and reports we have specific to a business process.
I feel good about what we have, but am wondering if there is a way to bulify the trigger by moving the SOQL query into a list, so I don't have to query within the trigger?
trigger EmailToTask on EmailMessage (after insert) { for (EmailMessage e : Trigger.new) { if (e.RelatedToId != NULL) { Task t = new Task(); t.ActivityDate = date.today(); t.Description = e.TextBody; t.Move_Type__c = 'Personal Note/Email from Donor'; t.Priority = 'Normal'; t.Status = 'Completed'; t.Subject = e.Subject; t.WhatId = e.RelatedToId; t.WhoId = [SELECT Id FROM Contact WHERE Email = :e.ToAddress OR npe01__WorkEmail__c = :e.ToAddress OR npe01__HomeEmail__c = :e.ToAddress].Id; insert t; } } }
- Medhanie Habte 37
- July 05, 2017
- Like
- 0
- Continue reading or reply
Automate Your Business Processes>Workflow Rule Migration>Map Your Workflow Actions to Process Actions
Hep me for this Problem!
- Alap Mistry
- March 30, 2017
- Like
- 1
- Continue reading or reply
Printing values in system.debug
My code is listed as
system.debug(mte.Service_Member__r.FirstName + ' and ' + mte.Lead_Supervisor__r.LastName + ' will be getting their member term evaluation on ' + mte.Date_of_Review__c.format() + ' for member term ' + mte.Member_Term__c);
The output appears as
null and null will be getting their member term evaluation on 1/25/17 for member term a0Ig0000007iekyEAA
My goal is to get the output to appear as a value rather than null, the trigger works nicely no less, but still.
Hope it helps.
Joe and Jane will be getting their member term evaluation of
- Medhanie Habte 37
- January 25, 2017
- Like
- 0
- Continue reading or reply
Apex disappeared from process builder - please help!
Btw, I am on professional edition.
- Alexej Ignatow
- June 14, 2016
- Like
- 0
- Continue reading or reply