Skip to main content
Debaranjan Ghosh (MM) 님이 #Integration에 질문했습니다
Hello All,

I am trying to copy a LWC component from 1 org to another org after making small chnage for 1 custom object . This LWC created to send Bulk email from the Org and uses a SOQL to get rows from EmailTemplate as below 

List<EmailTemplate> emailTemplatelist =[Select Id,Subject,Description,

                                                    HtmlValue,

                                                    DeveloperName,Body,IsActive from EmailTemplate WHERE DeveloperName LIKE 'ISOCL%' AND IsActive = true];

            system.debug('Email list '+emailTemplatelist);

and this soql containing function () is imported in JS of the LWC which throws error when tried to save as 

groupEmailTemplateSelect.js : Save Failed. Error HtmlValue, ^ ERROR at Row:2:Column:53 No such column 'HtmlValue' on entity 'EmailTemplate'. 

If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.: Source

groupEmailTemplateSelect.js : Linting & Saving the components initiated initiated.

This JS is sucessfuly saved in the source Org but in the target org where it is copied is throwing error as shown.

I also noticed this SOQL when executed using the same profile from query editor of Dev console gets executed sucessfully and shows the desired rows. However if Tooling API is checked then throws the same error that we get from Advanced Code searched window while trying to save the JS 

This is crtical for my project work And I will really appreciate if you can help me to get a Fix for the Issue which looks like a setting issue in the org but I dont know where which settings needs to be chnaged.

Best Regards 

Debaranjan Ghosh
답변 4개
0/9000