I have to update custom field with custom module type="datetime" and argument with data is date('Y-m-d H:i:s')
I need to update using v10 REST API. but not working.
Please suggest.
I have to update custom field with custom module type="datetime" and argument with data is date('Y-m-d H:i:s')
I need to update using v10 REST API. but not working.
Please suggest.
Your question isn't clear enough for suggestions, can you show us the code that isn't working? That should give us enough information you know exactly what it is you're trying to do.
Kenneth Brill
Developer Support Engineer
Your question isn't clear enough for suggestions, can you show us the code that isn't working? That should give us enough information you know exactly what it is you're trying to do.
Kenneth Brill
Developer Support Engineer
I have one custom module with Sugar7
Create custom field(note_time_c) data type = datetime.
I have to update note_time_c from application using v10 API.
My Code is
$arguments = array(
"note_time_c" => '2016-04-04 06:18:20',
);
$url = $base_url . "/OEPL_demo/".$record_id;
$
update_response
=
call
(
$url
,
$oauth2_token_response
->
access_token
,
'
PUT
'
,
$
arguments
);
$
update_response return null, No any error
But its not updating data with note_time_c
If you have custom field for date i.e 'note_time_c' for custom module 'Sugar7'. I would suggest you to try this one.
$name = "Example";
$datetime = "2016-04-15T18:47:00+05:30"; // Please use this format to update datetime
$record_id = "(your record id which you need to update)"
$url = $base_url . "/Sugar7/$record_id";
$arguments = array('name' => $name, 'note_time_c' => $datetime);
$response = call($url,$oauth2_token_response->access_token,'PUT',$arguments);
Thanks & Regards
Mohammed
Software Engineer, Bhea Technologies Pte Ltd