Skip to Content

Trigger Action based on Collection Change (Added or Removed Attachments)

Sep 20, 2017 at 06:50 AM


avatar image

Dear experts,

we have the requirement to trigger an action (which then calls a web service) whenever an item is added to a collection or removed. The added item / removed item then has to be assigned as request parameter to the web service.

More precisely it is attachments which are stored in AttachmentFolder/Document in a Service Request. So when an attachment is added the new attachment needs to be sent via a web service, same for a removed attachment, it has to be sent with another web service.

What would be the recommended approach to achieve this? In order to track single field changes I have created dummy extension objects to compare old and new values.

However this approach does not work for a list of attachments.

Any advice and input would be highly appreciated!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Suchita Phulkar Oct 01, 2017 at 08:40 AM


Can you use OData ? or it has to be SOAP.

If OData is OK, then you can use OData notification on ServiceRequest Change.

Register for the ServiceRequestAttcachmentFolderCollection for update .

The registered consumer will automatically get the notification along with changed data when attachment folder is updated.

Following may be further useful:

Setting Up OData Notifications

Leverage C4C Odata notification to monitor C4C Opportunity change in CRM system

Hope this helps.

Thanks & Regards


capture.jpg (50.6 kB)
10 |10000 characters needed characters left characters exceeded