function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Teach_me_howTeach_me_how 

How to determined if record is coming from apex data load?

Im creating trigger , inside this i want to add condition if i am manipulating record is from apex data load or from user interface. how can i  achieved this without creating field that will act as a flag that will set to true if coming from data load. thanks

Best Answer chosen by Admin (Salesforce Developers) 
RonakPatel.ceRonakPatel.ce

Hi
In trigger Just Ckeck the Currentpage.gerurl();

and check if url Contains salesforce.com then it is coming from Standard ui

if not then it wiil be from dataloader

just put this condition in trigger


if any query then ask me