Skip to main content

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 oim)

{

List idOIM = new List(iSELECT 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?</acctseederp outbound_inventory_movement c></acctseederp outbound_inventory_movement c></acctseederp outbound_inventory_movement c></acctseederp outbound_inventory_movement c></acctseederp outbound_inventory_movement c>

Be the first to reply!

Reply