You need to sign in to do that
Don't have an account?
MattMet86
@invocablemethod - Pass variables to apex
I keep getting an error message when trying to save this code.
Error: Compile Error: Illegal modifier on local variable at line 7 column 19
Code:
I need to pass two variables to the apex plugin so I can delete UserPackageLicense records.
Thanks for any help,
Matt
Error: Compile Error: Illegal modifier on local variable at line 7 column 19
Code:
public class PackageLicenseDelete { @InvocableMethod public static void licenseDelete() { @InvocableVariable(required=true) public ID UserId; @InvocableVariable(required=true) public String PackageID; //Use the UserId and PackageID to delete record from UserPackageLicense } }
I need to pass two variables to the apex plugin so I can delete UserPackageLicense records.
Thanks for any help,
Matt
https://www.sfdc-lightning.com/2018/11/call-apex-code-from-process-builder-in.html,
To avoid soql query inside for loop you can get id's using for loop and than can operate on list of id's outside for loop.