protected function modify(DAOCreateAction $request) {
$activityType = $request->getValue('activity_type');
if ($activityType) {
+ \CRM_Core_Error::deprecatedFunctionWarning('Use activity_type_id:name instead of activity_type in APIv4');
$result = OptionValue::get()
->setCheckPermissions(FALSE)
->addWhere('name', '=', $activityType)
if (!$optionGroupName || $request->getValue('option_group_id')) {
return;
}
-
+ \CRM_Core_Error::deprecatedFunctionWarning('Use option_group_id:name instead of option_group in APIv4');
$optionGroup = OptionGroup::get()
->setCheckPermissions(FALSE)
->addSelect('id')
"Activity": [
{
"subject": "Test A Phone Activity",
- "activity_type": "Phone Call",
+ "activity_type_id:name": "Phone Call",
"source_contact_id": "@ref test_contact_1.id"
}
]
"Activity": [
{
"subject": "Test Phone Activity",
- "activity_type": "Phone Call",
+ "activity_type_id:name": "Phone Call",
"source_contact_id": "@ref test_contact_1.id"
},
{
"subject": "Another Activity",
- "activity_type": "Meeting",
+ "activity_type_id:name": "Meeting",
"source_contact_id": "@ref test_contact_1.id",
"assignee_contact_id": [
"@ref test_contact_1.id",
"Activity": [
{
"subject": "Won A Nobel Prize",
- "activity_type": "Meeting",
+ "activity_type_id:name": "Meeting",
"source_contact_id": "@ref test_contact_1.id",
"@ref": "test_activity_1"
},
{
"subject": "Cleaned The House",
- "activity_type": "Meeting",
+ "activity_type_id:name": "Meeting",
"source_contact_id": "@ref test_contact_1.id",
"assignee_contact_id": [
"@ref test_contact_1.id"