Logical hook for quick create form.

Yes.
You are saving the Call object Wrong.
Is it retrieved?
By this way the object does not saved.

Can you skype me please

sohaib.majeed44

I have to explain you all.

Thanks

I don’t use skype what I am doing wrong can you please explain me. some of the value of the call is inserting into the database the only date_enterd are missing only in a database.

Hi,

What i can understand.
You are setting

$call = $arguments

and then saving the variables data into this object.
Ideally in the Hook, we should save the data into

$bean

Object. Because $bean object is saved. If you want to save the data into another module. You should create its object and then save it.
I think this is the issue with your code.

Maybe it help.

Looking forward for your response.

Thanks

save() is not a method of $arguments object. So it will never be saved.
Thanks

Hello, thanks for the reply. But I have a question why only date_enterted is not inserting in the database. When I printing the arguments i an getting the call objects. see the code.

Array
(
[id] => 8adb3506-505f-b386-6d93-599176920934
[related_id] => 8b426abc-076c-8603-a103-5af912aa70db
[module] => Contacts
[related_module] => Calls
[related_bean] => Call Object
(
[field_name_map] => Array
(
[id] => Array
(
[name] => id
[vname] => LBL_ID
[type] => id
[required] => 1
[reportable] => 1
[comment] => Unique identifier
[inline_edit] =>
)

                [name] => Array
                    (
                        [name] => name
                        [vname] => LBL_SUBJECT
                        [dbType] => varchar
                        [type] => name
                        [len] => 50
                        [comment] => Brief description of the call
                        [unified_search] => 1
                        [full_text_search] => Array
                            (
                                [boost] => 3
                            )

                        [required] => 1
                        [importable] => required
                    )

I am sure that assigned user and date entered is not being saved.
To save time, can you please contact me with any instant source of communication. It will not take more than 10 minutes to propose you a best solution.
It has been many days you are looking forward for a fix. To save the time, you can communicate by google hangouts as well.
Thanks