Hi,
Can anyone suggest me a solution about how do i delete multiple data using sugarcrm API?
i.e.
I have a user who have multiple licenses, I want to delete all his licenses at a time on the basis of its user id
How do I do that?
Hi,
Can anyone suggest me a solution about how do i delete multiple data using sugarcrm API?
i.e.
I have a user who have multiple licenses, I want to delete all his licenses at a time on the basis of its user id
How do I do that?
You can do this using two API calls -
1. Get all the list of License IDs for the user using one API call.
2. Use the DELETE MassUpdate api to delete the IDs.
ok that great
let me try that solution
Neeraja Pany helping code please
Neeraja Pany helping code please
Sorry I don't have any readily available code examples, but if you're using PHP, you can just try reusing the code in Sugar Documentation for calling Rest APIs:
Once you have the list of IDs to delete, you have to generate a payload that looks like:
{
"massupdate_params": {
"uid": [
"ebf22b86-94ea-1601-4f4f-512d09173438",
"e3b71c55-d96b-80bb-1696-512d09672398"
]
}
}
And call the DELETE License_Module/MassUpdate endpoint (use your correct module name instead of License_Module).
i have list af all the ids
how can i write code for masupdate delete
because there is no example on their documentation
I am using PHP CURD
I Mean how do i use filter for that ?
how do i add url for mass update delete?
You can use the PHP curl example provided in the link that I shared:
You can replace any sample POST method with DELETE. The URL of the call should be /rest/v10/YOUR_MODULE_NAME/MassUpdate.
Can you write the code how you are saying
i don't understand you
Sorry I can only guide you or provide hints. Implementation is your own :) You can do it, just read through what I mentioned and go through the Sugar documentation link - it's all REST API calls.
That's developers job :) You might be lucky to hire some talent by requesting expertise with direct message, thought...
Best,
Dmytro
Best Regards,
Dmytro Chupylka
integroscrm.com
We make work in Sugar CRM system faster, more convenient and efficient