Slaesforce FAQ

how to remove record from server mobile sdk salesforce

by Rodrick Kessler Published 3 years ago Updated 2 years ago
image

Delete a Record Use the sObject Rows resource to delete records. Specify the record ID and use the DELETE method of the resource to delete a record.

Full Answer

What is a dirty tree in Mobile Sync?

Local record trees that contain any dirty records—locally created, modified, or deleted records—are left unaltered. For example, if a parent record has one dirty child, Mobile Sync doesn’t update the parent or the child. This rule applies even if the parent is clean locally but has been changed on the server.

How does Mobile Sync work?

Mobile Sync fetches the record trees, each consisting of one parent and its children, using SOQL. It then separates parents from their children and stores them in their respective soups.

Can you add related record sync to your code?

Once you understand the principles and requirements involved, implementing it is straightforward. You can add related record sync to your code in a few steps. The following code snippets demonstrate the technique using Account (parent) and Contact (child) objects.

image
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9