CommonCoreTawan
  • Member for 8 years, 6 months
  • Last seen this week
Tooling api sObject type 'Layout' is not supported (Permissions)
0 votes

You can retrieve the entire metadata of a page layout using the Metadata namespace (and its classes) natively in apex https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/...

View answer
Find org where connected app was created to update its config params (having only consumerKey and consumerSecret)
0 votes

Log a case with Salesforce. They will be able to tell which app the credentials were generated from.

View answer
How to get references(where the field is used) of a custom field in salesforce via API or Tooling API
0 votes

Another way to do this programmatically is to use the NPM package sfdc-soup (https://github.com/pgonzaleznetwork/sfdc-soup) which enhances the capabilities (and fixes many of the bugs) of the ...

View answer
Why is this flow invisible?
1 votes

If you use HappySoup.io (free and community-led open source project) to see where a field is used, the results will tell you which flows are real flows vs which ones are process builders. This would'...

View answer
How to query MetadataComponentDependency for "Standard" Field?
0 votes

You could use HappySoup.io (a 100% free and community-led open source project) , which enhances the capabilities of the MetadataComponentDependency API and provides impact and dependency analysis for ...

View answer
Different community paths in different environments
0 votes

I had the same issue. The solution is to use the $Resource variable to pull the static resource, as opposed to using the whole path i.e /resource/myresource/files/picture.png https://developer....

View answer
Can I retrieve an Email Alert via the Ant Migration Tool?
1 votes

To retrieve WorkflowAlert with the Metadata API you need to make sure to include the object name before the alert name i.e Case.My_Alert or Account.Hello_World

View answer
ChangeGuru - Panaya - deep analysis of fields/profiles/etc REPLACEMENT?
0 votes

happysoup.io is a community-led, free, and open-source project which allows you to perform impact analysis for Salesforce. It provides similar capabilities to what you are looking for. PS: I'm not ...

View answer
How to determine where an email template is being used?
2 votes

You can use Salesforce Happy Soup, which provides 100% free Salesforce Impact Analysis. Happy Soup will tell you which email alerts are using your template, as well as which apex classes are using ...

View answer
Create Account Contact Relationship using AccountContactRelation object in Apex
1 votes

Your query List<AccountContactRelation> acrList = [SELECT AccountId, ContactId FROM AccountContactRelation]; is pulling ALL the records of the AccountContactRelation table, like literally ...

View answer
Date problem in Apex
0 votes

You should check/review the documentation on what javascript uses as a reference to calculate the date and time. Is it your computer's time zone? your browser? etc Apex, on the other hand, could be ...

View answer
LWC wire Service empty return
1 votes

I had this issue today, the way to check this is with a getter method on the component get hasDuplicates(){ if(this.dupLeads && this.dupLeads.length){ return true; } return ...

View answer
How to add a very big string as a default value of a custom field?
1 votes

Custom text fields only support 255 characters. You can try using a rich text area or long text area, but you'll have to use Apex to populate the field before the record is created (i.e as a default ...

View answer
Workflow doesn't update field when initated from apex
0 votes

You might have another workflow/process/trigger that is setting the value back to null. Remember that during an update, workflows and triggers can be executed multiple times (recursion) so it's ...

View answer
Acquiring an oAuth access token from an external service
Accepted answer
0 votes

You should do the Oauth authentication in a named credetial (outside of apex) and then simply reference the named credential in apex https://help.salesforce.com/articleView?id=named_credentials_about....

View answer
Authorize Apex Rest API call using an Azure token
4 votes

In general, for oauth to work, the user needs to authorise salesforce to perform requests on their behalf. If you haven't done it already, I suggest you go through the documentation on the many ...

View answer
How to get the root cause of an unhandled trigger error?
1 votes

That's because you have nested exceptions, so the code is only seeing the higher level one, to be able to see both, both of them need to be explictly thrown/catch, for example On account trigger ...

View answer
Completely remove <apex:outputText> string if the value is blank
0 votes

You could try using an old plain html tag like this {!Description} If there's no description, the tag shouldn't show up.

View answer
Why we are allowed to pass sObject in queueable?
1 votes

Queueable is a completely different framework from future methods, and it gives a lot of benefits over it. It was probably easier and safer for salesforce to create a new framework/interface, than the ...

View answer
How to query parent record,given the child record I'd in Salesforce?
1 votes

You can query the account fields in two ways SELECT borrower__r.Name,borrower__r.Industry FROM Opportunity WHERE Id = 'myid' or and query the object directly filtering by the account id on the ...

View answer
Store and Revert Prior Field Values on Object After Approval Process Rejection
0 votes

I do have an apex trigger that will run if the approval process is approved since this trigger stores the old and new values in a separate object so we can run reports. Well that's the answer to your ...

View answer
Querying Apex Classes & Dependent Test Classes
1 votes

You might be able to pull some of this through the Tooling API https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_apexcodecoverage.htm

View answer
Converting Database.SaveResult error messages in more friendly feedback messages
0 votes

There are multiple reasons for a record to fail on insert/update, and each will have its own unique error message Valdation rule prevents the record from being created/updated with certain field ...

View answer
How can I write a test that involves accessing the EmailMessage.ActivityId field?
1 votes

Here's a hack. If you are running a test (as in, the code is called by a test class), then don't filter by activityId EmailMessage emailMessage; if(Test.isRunningTest()){ emailMessage = [SELECT ...

View answer
Navigate To Component in Community
Accepted answer
0 votes

Try to use comm__namedPage instead of standard__ https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_navigation_page_definitions.htm In Communities, the value for ...

View answer
How to add Google tag management to a Salesforce Sites page?
1 votes

Visualforce pages have implicit html and body tag, so yeah, you can add those blocks at the beginning or end of your page, as specified. Also, nothing stops you from adding your own html and body ...

View answer
Oauth2 redirect_uri_mismatch except that it matches exactly
Accepted answer
3 votes

If your sandbox has My Domain enabled, replace test.salesforce.com with your domain and try again.

View answer
SymbolTable not supported
1 votes

You need to query the field from the ApexClass object first, as seen here https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_apexclass.htm Also If ...

View answer
illegal assignment from datetime to date on SObject.put when merging Accounts
Accepted answer
0 votes

I know this is not what you are asking but you have a SOQL query inside a for loop and that's a bad practice for (Integer i=0; i < listPerfectIds.size(); i++) { merged.add([...

View answer
Unable to login using Frontdoor.jsp
1 votes

Using the frontdoor.jsp to get a session id is not a supported way of logging in, it might work, but salesforce can change the implementation at any time. What you are trying to do sounds a IDP ...

View answer