I am currently working on creating a call log using send_call_invitation as soon as lead is created . I was able to insert data to orocrm_call table using process.yml.But i am stuck in mapping the activity id with lead id which is required to be shown in Activity List for the Lead.
Please find the code given below :PHP123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778definitions:send_mail_lead:label: 'New Lead'enabled: trueentity: OroCRM\Bundle\SalesBundle\Entity\Leadorder: 20actions_configuration:- @send_email_template:attribute: $.emailfrom: 'firstname.lastname@example.org'to: $emailtemplate: 'New_Lead_Creation_Notification'owner: $ownerentity: $.data- @add_email_activity_target:email: $.emailtarget_entity: $.datasend_call_invitation:label: 'Call Lead'entity: OroCRM\Bundle\SalesBundle\Entity\Leadorder: 30actions_configuration:- '@tree':- @create_entity:class: OroCRM\Bundle\CallBundle\Entity\Callattribute: $.calldata:owner: $ownersubject: 'SAMPLE COD'phoneNumber: $phoneNumbernotes: 'SAMP'organization: $organizationcreatedAt: $createdAtupdatedAt: $updatedAt- '@find_entity':parameters:class: OroCRM\Bundle\CallBundle\Entity\CallDirectionattribute: $.calldirectionwhere:name: 'outgoing'case_insensitive: true- '@call_method':conditions:'@not_empty': $.calldirectionparameters:object: $.callmethod: setDirectionmethod_parameters: [$.calldirection]- '@call_method':conditions:'@not_empty': $.callparameters:object: $.callmethod: setDirectionmethod_parameters: [$.calldirection]#- @create_entity:# class: OroCRM\Bundle\CallBundle\Entity\Manager\CallActivityManager# attribute: $.callactivitymgr#- '@call_method':# conditions:# '@not_empty': $.call# parameters:# object: $.callactivitymgr# method: addAssociation# method_parameters: [$.call,$.data]triggers:send_mail_lead:-event: createpriority: 0queued: truetime_shift: 3send_call_invitation:-event: createpriority: 0queued: truetime_shift: 4
Here i am stuck trying to do it wherein i can map the activitylist id with the lead.But couldn’t
(the one’s which see to be commented in code above).It throws an exception that CallActivityManager is not managable in projectDirectory/cron/job URL.
I was facing similar issue for the email trigger which was solved with the solution given by Mike in one of my Questions posted (given below for Reference):
Please need to know is there any function similar to the one used in email triggering (@add_email_activity_target) or can i get any documentation or resources which can help me in solving this issue.As i could not found any such functionality with the Call Activity.
Thanks & Regards,
You must be logged in to reply to this topic.