You need to sign in to do that
Don't have an account?
Jonathan Crow 6
Error Saving APEX Trigger - sObject type 'ContainerAsyncRequest' is not supported
I am trying to create an APEX Trigger that strips a custom field of any HTML. I wrote this code in a Trailblazer sandbox and it was working fine. When I moved it over to my Dev org I now am getting an error message when saving:
Failed to create createContainerMember for containerId=1bg8X000000HkYgQAK: SELECT Id FROM ContainerAsyncRequest WHERE State ^ ERROR at Row:1:Column:16 sObject type 'ContainerAsyncRequest' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.
Here is the APEX Trigger I am trying to write:
Currently I have made sure that my profile has:
Any ideas on what to try next?
Failed to create createContainerMember for containerId=1bg8X000000HkYgQAK: SELECT Id FROM ContainerAsyncRequest WHERE State ^ ERROR at Row:1:Column:16 sObject type 'ContainerAsyncRequest' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.
Here is the APEX Trigger I am trying to write:
trigger removeHTML on Case (before update) { for (Case c : Trigger.New){ c.MyCustom_Field__c = c.MyCustom_Field__c.stripHtmlTags(); } }
Currently I have made sure that my profile has:
- API Enabled
- View and Setup Configuration
- View All Data
- Write access to MyCustom_Field__c and Case
- I have changed my Developer Console Workspace in case it had gotten corrupted and deleted all others.
trigger removeHTML on Case (before *update*) { }
Any ideas on what to try next?