douglascayers / sfdc-update-task-who-relations

Example Process Builder and Flow to update all Contacts / Leads related to a Task when activity logged.
https://douglascayers.com/2016/12/26/how-to-update-leads-or-contacts-when-shared-activities-logged/
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

test errors when deploying code #2

Open monicabunch opened 6 years ago

monicabunch commented 6 years ago

When I try deploying using the github salesforce deploy tool I get these failures.

Failures: classes/GetEventWhoRelationSObjectsInvocableTest.cls(93,14):Method does not exist or incorrect signature: void startTest() from the type test classes/GetEventWhoRelationSObjectsInvocableTest.cls(45,14):Method does not exist or incorrect signature: void startTest() from the type test classes/GetEventWhoRelationSObjectsInvocableTest.cls(102,14):Method does not exist or incorrect signature: void stopTest() from the type test classes/GetTaskWhoRelationSObjectsInvocableTest.cls(43,14):Method does not exist or incorrect signature: void startTest() from the type test classes/GetTaskWhoRelationSObjectsInvocableTest.cls(52,14):Method does not exist or incorrect signature: void stopTest() from the type test classes/GetTaskWhoRelationSObjectsInvocableTest.cls(89,14):Method does not exist or incorrect signature: void startTest() from the type test classes/GetTaskWhoRelationSObjectsInvocableTest.cls(98,14):Method does not exist or incorrect signature: void stopTest() from the type test classes/GetEventWhoRelationSObjectsInvocableTest.cls(54,14):Method does not exist or incorrect signature: void stopTest() from the type test

douglascayers commented 6 years ago

Hi @monicabunch,

Did you happen to see these other errors above those?

flows/Update_Contact_Lead_Event_Relations-1.flow(Update_Contact_Lead_Event_Relations-1):Invalid field name WhoCount for object Event flows/Update_Contact_Lead_Task_Relations_Flow-5.flow(Update_Contact_Lead_Task_Relations_Flow-5):Custom Object Definition ID: bad value for restricted picklist field: TaskRelation

Make sure you enable Shared Activities under Activity Settings in Setup menu.

image

monicabunch commented 6 years ago

No, these were the only errors.

From: Doug Ayers [mailto:notifications@github.com] Sent: Tuesday, April 17, 2018 10:46 PM To: DouglasCAyers/sfdc-update-task-who-relations sfdc-update-task-who-relations@noreply.github.com Cc: Monica Bunch monica.bunch@siferfx.com; Mention mention@noreply.github.com Subject: Re: [DouglasCAyers/sfdc-update-task-who-relations] test errors when deploying code (#2)

Hi @monicabunchhttps://github.com/monicabunch,

Did you happen to see these other errors above those?

flows/Update_Contact_Lead_Event_Relations-1.flow(Update_Contact_Lead_Event_Relations-1):Invalid field name WhoCount for object Event flows/Update_Contact_Lead_Task_Relations_Flow-5.flow(Update_Contact_Lead_Task_Relations_Flow-5):Custom Object Definition ID: bad value for restricted picklist field: TaskRelation

Make sure you enable Shared Activitieshttps://help.salesforce.com/articleView?id=activities_shared_considerations.htm&type=0&language=en_US&release=204.17 under Activity Settings in Setup menu.

[image]https://user-images.githubusercontent.com/4142577/38910822-f0ea6994-4290-11e8-9c4d-49155dba0c4e.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/DouglasCAyers/sfdc-update-task-who-relations/issues/2#issuecomment-382247948, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkJttjWGyzgxjNXRj5vkm3Z77j-F-KcOks5tprbdgaJpZM4TXSv0.