29 lines
1.2 KiB
OpenEdge ABL
29 lines
1.2 KiB
OpenEdge ABL
@deprecated
|
|
// This class is deprecated. Use BatchForCreateWebhookMultiStore(String store) instead.
|
|
global with sharing class BatchForWebhooks implements Database.Batchable<HIC_ShopifySync__Webhook__c>, Database.AllowsCallouts, Database.Stateful{
|
|
|
|
//Providing Username and Password
|
|
public static string USER_NAME;
|
|
public static string PASSWORD;
|
|
//Provide URL of the Shopify store to HTTP requests
|
|
public static string shopifyUrl;
|
|
|
|
|
|
public static List<HIC_ShopifySync__Configuration__c > configurationList = new List<HIC_ShopifySync__Configuration__c >();
|
|
|
|
global BatchForWebhooks(){
|
|
|
|
}
|
|
|
|
global Iterable<HIC_ShopifySync__Webhook__c> start(Database.BatchableContext bc){
|
|
|
|
List <HIC_ShopifySync__Webhook__c> webhookList = [Select HIC_ShopifySync__SF_URL_Mapping__c, HIC_ShopifySync__Shopify_Object__c,HIC_ShopifySync__DML_Type__c,HIC_ShopifySync__Topic__c, HIC_ShopifySync__Webhook_Id__c from HIC_ShopifySync__Webhook__c LIMIT 500];
|
|
return webhookList;
|
|
}
|
|
|
|
global void execute(Database.BatchableContext bc , List<HIC_ShopifySync__Webhook__c> scope){
|
|
|
|
}
|
|
global void finish(Database.BatchableContext bc){
|
|
}
|
|
} |