+ 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();
    }
}