Hi,
Can somebody please help to create a case with attachments using Sugar API?
I want to create a case having an attachment and then i want to retrieve it back on some case detail page.
I am creating cases using Curl.
Thank you
Hi,
Can somebody please help to create a case with attachments using Sugar API?
I want to create a case having an attachment and then i want to retrieve it back on some case detail page.
I am creating cases using Curl.
Thank you
Like i wanna get the same case on some case detail page where I show its case name, description and that attachments too.
Andre Serrazina
like in this example
//Get An Attachment on a Note
$url = $instance_url . "/Notes/{$noteRecord->id}/file/filename";
It says the noteRecord->id in request
but when I get the case with the attachment there is no note_id in it.
So help me out to get the attachment attached to the case now
Hello Rana Awais ,
If you hit the GET endpoint for the case record id you should be able to retrieve the note id's in the payload:
GET https://INSTANCE_URL/rest/v11_24/Cases/ee706e92-3538-11ef-b423-0684a87b501c
As you can see here:
Thanks Andre Serrazina
I got this earlier
Andre Serrazina Can you please tell me about the chat feature between the client and the admin in the cases module?
like this
HI Rana Awais ,
I believe you are referring to the "Case Timeline" that lists all the interactions that happened on the case, more information here:
Andre Serrazina
yes you can say case timeline
but I need to done by API like in PHP(curl)
Like you do I get case timeline using PHP curl command
Is there any way to get this?
Hello Rana Awais ,
Sure, you just need to hit the related_activities endpoint with your curl command:
For cases should be something like this:
GET https://INSTANCE_URL/rest/v11_24/Cases/CASE_ID/related_activities
A good starting point is to have a look at the request that the browser is sending and just copy is to your code:
Let me know if this is what you are looking for.
Cheers,
André
Hi Andre Serrazina
$rmaData = array( "name" => "RMA for Test Account", "description" => "RMA description", "account_id_c" => $accountId, // Assuming account_id_c is the custom field for linking account "contact_id_c" => $contactId // Assuming contact_id_c is the custom field for linking contact );
Can you please tell me that what is the custom field for linking account and contact in DNF_RMA_FORM module?