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
ahmed kishk 9ahmed kishk 9 

create scheduled job for npsp data import

Hi,
Is it possible to create a scheduled job for npsp data imports. I am able to create data import objects using APEX, but I am not able to process it automatically.

Thanks.
ahmed kishk 9ahmed kishk 9
I was able to simulate the import functionality using below APEX class and invoke it using scheduled job:
 
public class SomeSchedulableClass implements Schedulable {
    public void execute(SchedulableContext ctx) { 
        // Import new requests.
        NPSP.BDI_DataImport_API.importData();
    }
}