【Flow】| 【Element】| Delete Records Explained in 2 Minutes
ฝัง
- เผยแพร่เมื่อ 4 ส.ค. 2024
- Visit our blog for more Flow knowledge:
salesforce-flowsome.com/
【Related Posts】
Delete Records: salesforce-flowsome.com/flow-...
#salesforce #flow #salesforceFlowsome #deleteRecords #element
Hi there, can you please clarify? if option 1 is chosen (Use record Variable), we only have to add the Delete record element. If option 2 is chosen (specify conditions), we have to add the Get record + Delete record Element?
Hi Joe, I mean if option 2 is chosen, the system will use 1 SOQL to query the records and then use 1 DML to delete the records
So this will be the equivalent of using 1 Get Records + 1 Delete Records in terms of the operations in the backend. Hope this explains!
Hi Melody, So is it preferred to do a get record element combined with a delete element, instead of using the option within the delete record to query it?
Hello! I would say try to combine the two if possible (when they are right next to each other) because even though they will both use 1 SOQL+1 DML, you get to save 1 element. Not that it makes a big difference, but it's a good practice to always use as less elements as possible (due to the 2000 elements per interview limit)