People who code: we want your input. Take the Survey

New answers tagged

0

Derek F's answer was correct (and marked as the accepted answer). For future readers, here was my final code: Apex Class: @RestResource(urlMapping='/Accounts/*/contacts') global with sharing class AccountManager { @HttpGet global static Account getAccount(){ RestRequest request = RestContext.request; String accountId = request....


2

This appears to be an issue with your url mapping. Your class uses /Account/*/contacts Trailhead specifies that your mapping should be /Accounts/*/contacts (notice that the requested mapping uses "Accounts", plural) Beyond that, using @isTest(seeAllData = true) is bad practice, and you should nip that in the bud before it becomes a habit. In 99.9% ...


0

I'd make a custom inner Apex Class to represent this object - json2apex can do this for you, but in this case you have a simple structure that can be hand built pretty quickly. Something like this: public class RequestContainer { public RequestItem[] inputCells {get; set;} public RequestItem[] outputCells {get; set;} } public class RequestItem { ...


1

this works for me to get recordId for a component in the Utility Bar: <aura:component description="Aura Container in Utility Bar for LWC cmp" implements="force:hasRecordId, force:lightningQuickAction, lightning:utilityItem" access="global"> <c:childLwcCmp recordId="{!v.recordId}" /> </aura:...


0

Check the recent published knowledge article to see the consecutive api pattern - https://help.salesforce.com/articleView?id=000354894&language=en_US&mode=1&type=1


2

In order to see sent email as an Activity for related contact, you need to use TargetObjectId instead of ToAddress and set Id of the Contact which should receive an email. please refer to the documentation of setSaveAsActivity method Optional. The default value is true, meaning the email is saved as an activity. This argument only applies if the recipient ...


0

From the Setup menu (not "Service Setup"), navigate to PLATFORM TOOLS -> Apps -> App Manager Find your app in the list, then choose "View" from the small dropdown at the far right.


Top 50 recent answers are included