Invocable Method

  • 1
  • Question
  • Updated 5 months ago
Hello,

I am having trouble using the ability to call an Invocable Method using Skuid (first time using this function):

Here is a screenshot from the setup:



And here is the APEX:

global class dhCheckProductConsignmentEligibility
{
@InvocableMethod(label = 'Product Consignment Eligibility')
public static void productConsignmentCheck(List<AcctSeedERP__Outbound_Inventory_Movement__c> oim)
{
List<AcctSeedERP__Outbound_Inventory_Movement__c> idOIM = new List<AcctSeedERP__Outbound_Inventory_Movement__c>([SELECT Id, Inventory_Transfer__r.Warehouse_To__r.ID, Lot__r.Product__r.ID FROM AcctSeedERP__Outbound_Inventory_Movement__c WHERE ID IN:oim AND Lot__r.Product__r.Non_Consignable__c = TRUE]);
if(!idOIM.isEmpty())
{
List<AcctSeedERP__Outbound_Inventory_Movement__c> updateOIM = new List<AcctSeedERP__Outbound_Inventory_Movement__c>();

for(AcctSeedERP__Outbound_Inventory_Movement__c o : idOIM)
{
o.Requires_Approval__c = TRUE;
updateOIM.add(o);
}
update updateOIM;
}
}
}

Help?
Photo of Danny Hartley

Danny Hartley

  • 434 Points 250 badge 2x thumb

Posted 5 months ago

  • 1

Be the first to post a reply!