Posts

Showing posts with the label sfdc

SFDC : Create ANT Package.xml from Change set

Image
Chrome Extension which generate package.xml from change set Salesforce has powerful tool, change set, which provides admins the ability to move and deploy bundle of components to different connected SFDC ORGs. However it becomes tedious when you have to keep in sync several sandboxes. Or if you have big project going on having big list of components, in this case you need to select all the components one by one which is time consuming job. There is one idea to create package.xml from change set. https://success.salesforce.com/ideaView?id=08730000000jh8sAAA# However till the time this idea is delivered by salesforce, I have created a chrome extension which extracts the components of change sets and creates package.xml. https://chrome.google.com/webstore/detail/sfdc-magic-toolkit/kilgdoafhhpkloidoajmlfienjndfbfo?utm_source=chrome-ntp-icon We know that through ANT migration tool we can easily deploy set of components to different sandboxes hence this exte...

SFDC Issue in Runtime engine while bulk DML operation

Image
Salesforce Issue in partial record processing in bulk DML operation Here we will go through the issue related to partial record processing in bulk DML operations for example. Data loader, or database.insert( listSobject, false ). What is partial update? To understand the issue, first let’s understand partial update. Suppose we try to insert 5 records into Lead object and 1 fails 4 succeeds. This is called partial records processing in bulk DMLs. Scenario Let’s execute a scenario and prove that there is an issue with Salesforce partial record processing . Suppose we have a trigger as shown below. This sets the email field for all the newly inserted leads. 2.         Now suppose we insert below listed leads using data loader. Since we know that Company is mandatory on lead object, So last lead ‘Lead10’ should fail and all other should be successfully inserted. Also for success full leads email id should be set to ‘testemail@domain.co...