Skip to Content
0
Dec 17, 2013 at 10:06 AM

Automatic Outbound call from view

58 Views

Good morning all,

I work under CRM 6.0.

I have enhanced a view in the component ICCMP_BTPARTNER and in this custom view I have different push button with a telephone number.

I would like that when the user press the push button it create an outbound call to the number selected.

I have seen that when from dialpad.htm of the HiddenView of the component CRMCMP_IC_FRAME I compose a number and I press the button to call, It's triggered the method EH_ONFORWARDCALL of the controller CL_CRMCMP_I_CUCOHIDDENVIE_IMPL with the event "IC.NewRequest".

the method EH_ONFORWARDCALL prepare the object ref_event that is TYPE REF TO cl_crm_ic_event setting the parameters:

PARAM1-VALUE ContactStarted

PARAM2-VALUE phone

PARAM3-VALUE 5deabb9a-c7bd-4486-a925-296e3f681a7c

PARAM5-VALUE +892150

PARAM6-VALUE Outbound

After setting that it raise the event to the server using this code:

ref_event_service = cl_crm_ic_services=>get_event_srv_instance( ).

ref_event_service->raise( ref_event ).

So I would like to replicate this code to raise the outbound call eventi from my custom view.

So the question is, the parameter3 contains the reference of the new contact started, It's possible to create a new contact in my method and fill UP the parameters to call the outbound call from my custom view?

Many thanks

Marco