Not sure what I’m doing wrong here, I’m getting a an error 400 bad request when passing a single Attachment Id to to this class:
global class AttachmentsDelete {
@InvocableMethod(label='Delete Attachments')
global static void deleteAttachment(List<Attachment> attachIds) {
List <Attachment> attachmentsToDelete = eSELECT Id FROM Attachment WHERE Id IN :attachIds];
delete attachmentsToDelete;
}
}
it seems like it might be skuid’s using the apex custom action with a wrong URL?