You need to sign in to do that
Don't have an account?
Melissa Hoover
Custom field update workflow not working with another worklfow
We have a workflow setup to create a completed task when a date is entered on an object.This works perfectly, however, there is a custom picklist field on the task that we want to update when the auto-task is created. I've setup a second workflow to update the field, but it does not work on the auto-created tasks, it only works on my manually entered tasks. The second workflow is setup with the criteria of the task subject being equal to what we have specified for the auto-created task. I'm not sure if I'm missing something... Any advice?
It should work actually. Subject you are passing while creating the Task is same in the Criteria. (Double check).
Can you share debug log (Log level - Workflow: Finer).
Regards,
Naveen Ila
I've double checked the subject to be the same. See debug log below.
40.0 APEX_CODE,DEBUG;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;NBA,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WAVE,INFO;WORKFLOW,FINER
12:44:47.12 (12025384)|SOQL_EXECUTE_BEGIN|[27]|Aggregations:0|SELECT IsSandbox FROM Organization WHERE Id = :tmpVar1
12:44:47.12 (17169002)|SOQL_EXECUTE_END|[27]|Rows:1
12:44:47.12 (190092200)|SOQL_EXECUTE_BEGIN|[396]|Aggregations:0|SELECT Name FROM RecordType WHERE SObjectType IN :tmpVar1
12:44:47.12 (218864162)|SOQL_EXECUTE_END|[396]|Rows:67
12:44:47.12 (219637958)|SOQL_EXECUTE_BEGIN|[401]|Aggregations:0|SELECT Name FROM UserRole LIMIT 500
12:44:47.12 (221947278)|SOQL_EXECUTE_END|[401]|Rows:0
12:44:47.12 (222797164)|SOQL_EXECUTE_BEGIN|[406]|Aggregations:0|SELECT Name FROM Profile LIMIT 1000
12:44:47.12 (225391286)|SOQL_EXECUTE_END|[406]|Rows:16
12:44:47.12 (225728586)|SOQL_EXECUTE_BEGIN|[411]|Aggregations:0|SELECT Name FROM Organization
12:44:47.12 (228522101)|SOQL_EXECUTE_END|[411]|Rows:1
12:44:47.275 (275857787)|CUMULATIVE_LIMIT_USAGE
12:44:47.275 (275857787)|LIMIT_USAGE_FOR_NS|(default)|
Number of SOQL queries: 0 out of 100
Number of query rows: 0 out of 50000
Number of SOSL queries: 0 out of 20
Number of DML statements: 0 out of 150
Number of DML rows: 0 out of 10000
Maximum CPU time: 0 out of 10000
Maximum heap size: 0 out of 6000000
Number of callouts: 0 out of 100
Number of Email Invocations: 0 out of 10
Number of future calls: 0 out of 50
Number of queueable jobs added to the queue: 0 out of 50
Number of Mobile Apex push calls: 0 out of 10
12:44:47.275 (275857787)|LIMIT_USAGE_FOR_NS|McLabs2|
Number of SOQL queries: 5 out of 100
Number of query rows: 85 out of 50000
Number of SOSL queries: 0 out of 20
Number of DML statements: 0 out of 150
Number of DML rows: 0 out of 10000
Maximum CPU time: 0 out of 10000
Maximum heap size: 0 out of 6000000
Number of callouts: 0 out of 100
Number of Email Invocations: 0 out of 10
Number of future calls: 0 out of 50
Number of queueable jobs added to the queue: 0 out of 50
Number of Mobile Apex push calls: 0 out of 10
12:44:47.275 (275857787)|CUMULATIVE_LIMIT_USAGE_END
12:44:47.12 (305720127)|DML_BEGIN|[172]|Op:Insert|Type:McLabs2__LogEvent__c|Rows:1
12:44:47.12 (661666656)|DML_END|[172]
12:44:47.677 (677994737)|CUMULATIVE_LIMIT_USAGE
12:44:47.677 (677994737)|LIMIT_USAGE_FOR_NS|(default)|
Number of SOQL queries: 0 out of 100
Number of query rows: 0 out of 50000
Number of SOSL queries: 0 out of 20
Number of DML statements: 0 out of 150
Number of DML rows: 0 out of 10000
Maximum CPU time: 83 out of 10000
Maximum heap size: 0 out of 6000000
Number of callouts: 0 out of 100
Number of Email Invocations: 0 out of 10
Number of future calls: 0 out of 50
Number of queueable jobs added to the queue: 0 out of 50
Number of Mobile Apex push calls: 0 out of 10
12:44:47.677 (677994737)|LIMIT_USAGE_FOR_NS|McLabs2|
Number of SOQL queries: 5 out of 100
Number of query rows: 85 out of 50000
Number of SOSL queries: 0 out of 20
Number of DML statements: 1 out of 150
Number of DML rows: 1 out of 10000
Maximum CPU time: 0 out of 10000
Maximum heap size: 0 out of 6000000
Number of callouts: 0 out of 100
Number of Email Invocations: 0 out of 10
Number of future calls: 0 out of 50
Number of queueable jobs added to the queue: 0 out of 50
Number of Mobile Apex push calls: 0 out of 10
12:44:47.677 (677994737)|CUMULATIVE_LIMIT_USAGE_END
12:44:47.680 (680428108)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:01Ij0000000nyDV
12:44:47.680 (693312030)|WF_RULE_EVAL_BEGIN|Workflow
12:44:47.680 (693349350)|WF_CRITERIA_BEGIN|[Pre-Lead: Florida Blvd__8255 a0Gf100001zeX5s]|Proposal Submitted Metric|01Qf1000000kgjF|ON_CREATE_OR_TRIGGERING_UPDATE|0
12:44:47.680 (695444921)|WF_RULE_FILTER|[Pre-Lead : Date Proposal Submitted not equal to ]
12:44:47.680 (695462942)|WF_RULE_EVAL_VALUE|2018-08-20 00:00:00
12:44:47.680 (695467611)|WF_CRITERIA_END|true
12:44:47.680 (711859155)|WF_CRITERIA_BEGIN|[Pre-Lead: Florida Blvd__8255 a0Gf100001zeX5s]|Expired Pre-Lead Not Won Dead Task|01Qf100000052nL|ON_CREATE_OR_TRIGGERING_UPDATE|0
12:44:47.680 (712177199)|WF_RULE_FILTER|[Pre-Lead : Expired Listing? equals true]
AND [Pre-Lead : Status equals Dead, Not Won]
12:44:47.680 (712200482)|WF_RULE_EVAL_VALUE|true
12:44:47.680 (712219732)|WF_RULE_EVAL_VALUE|3
12:44:47.680 (712228835)|WF_CRITERIA_END|false
12:44:47.680 (712248653)|WF_CRITERIA_BEGIN|[Pre-Lead: Florida Blvd__8255 a0Gf100001zeX5s]|Probability to 100|01Qj0000000cMoz|ON_ALL_CHANGES|0
12:44:47.680 (712292333)|WF_RULE_FILTER|[Pre-Lead : Probability not equal to ]
12:44:47.680 (712308516)|WF_RULE_EVAL_VALUE|100
12:44:47.680 (712316752)|WF_CRITERIA_END|true
12:44:47.680 (712359580)|WF_SPOOL_ACTION_BEGIN|Workflow
12:44:47.680 (724149010)|WF_RULE_INVOCATION|[Pre-Lead: Florida Blvd__8255 a0Gf100001zeX5s]
12:44:47.680 (724328522)|WF_ACTION_TASK|Task:Proposal Submitted|Id=01Vf1000000kCJC|CurrentRule:Proposal Submitted Metric (Id=01Qf1000000kgjF)|AssignedTo:Mathew Laborde|DueDate:Mon Aug 20 00:00:00 GMT 2018
12:44:47.680 (724761996)|WF_ACTION| Field Update: 1; Task: 1;
12:44:47.680 (724781007)|WF_RULE_EVAL_END
12:44:47.798 (798031729)|DML_BEGIN|[172]|Op:Insert|Type:McLabs2__LogEvent__c|Rows:1
12:44:47.798 (813558723)|DML_END|[172]
12:44:47.798 (822789763)|SOQL_EXECUTE_BEGIN|[60]|Aggregations:0|SELECT Contact__c, Listing__c, Status__c FROM Marketing__c
12:44:47.798 (824508818)|SOQL_EXECUTE_END|[60]|Rows:0
12:44:47.824 (824872844)|CUMULATIVE_LIMIT_USAGE
12:44:47.824 (824872844)|LIMIT_USAGE_FOR_NS|(default)|
Number of SOQL queries: 0 out of 100
Number of query rows: 0 out of 50000
Number of SOSL queries: 0 out of 20
Number of DML statements: 0 out of 150
Number of DML rows: 0 out of 10000
Maximum CPU time: 83 out of 10000
Maximum heap size: 0 out of 6000000
Number of callouts: 0 out of 100
Number of Email Invocations: 0 out of 10
Number of future calls: 0 out of 50
Number of queueable jobs added to the queue: 0 out of 50
Number of Mobile Apex push calls: 0 out of 10
12:44:47.824 (824872844)|LIMIT_USAGE_FOR_NS|McLabs2|
Number of SOQL queries: 6 out of 100
Number of query rows: 85 out of 50000
Number of SOSL queries: 0 out of 20
Number of DML statements: 2 out of 150
Number of DML rows: 2 out of 10000
Maximum CPU time: 0 out of 10000
Maximum heap size: 0 out of 6000000
Number of callouts: 0 out of 100
Number of Email Invocations: 0 out of 10
Number of future calls: 0 out of 50
Number of queueable jobs added to the queue: 0 out of 50
Number of Mobile Apex push calls: 0 out of 10
12:44:47.824 (824872844)|CUMULATIVE_LIMIT_USAGE_END
12:44:47.680 (828842421)|WF_ACTIONS_END| Field Update: 1; Task: 1;