Ralph Callaway
  • Member for 9 years, 4 months
  • Last seen this week
Update datetime field for scheduled action in process builder won't trigger action at the new datetime value
0 votes

It's supposed to work as you describe. If the date field the schedule is based on changes, salesforce is supposed to reschedule it. From the docs If the referenced field value changes and the ...

View answer
How to use "sfdx force:source:pull" with folders other than "main/default" where components are added in the scratch org?
Accepted answer
7 votes

This is by no means great, but you can force your way around this by editing the local file used to track changes. create a new field in the org sfdx force:source:pull -> field gets pulled into ...

View answer
Developer Console script fail with invalid cross reference id
0 votes

for what it's worth, no need to query anything to perform an update update new Implementation__c(Id = 'record id', Account__c = 'account id');

View answer
Retrieve all records for a single CustomMetaDataType using ant
0 votes

While this isn't possible using wildcards within a package.xml, you can do this with the metadata api by first doing a list call to retrieve all custom metadata types. From there you can filter down ...

View answer
Deployment failing with "Could not resolve list view column: CORE.USERS.SAML_SUBJECT" on the User object
Accepted answer
0 votes

Based on the column name "CORE.USERS.SAML_SUBJECT" it's complaining about something that is a standard user field in the source sandbox. If you're getting an error deploying to another sandbox it's ...

View answer
How do I hide field on edit/new record page and still display them in the view page?
Accepted answer
4 votes

Out of the box you can't specify different fields for the view/edit/new page layouts. You can only specify which fields are editable/required/read-only. Some options to consider. Record Type ...

View answer
Insufficient Code Coverage for Batch Class
2 votes

1) So first issue you only test the scheduler but you want to also test the batch run. 2) you want to increase code coverage So for first issue, call the batch, otherwise stoptest just runs your ...

View answer
SOQL Like Query?
4 votes

First off, here's the LIKE docs LIKE Like Expression is true if the value in the specified fieldName matches the characters of the text string in the specified value. The LIKE operator in ...

View answer
How to update a record in a trigger with value from a REST API?
0 votes

In order to be able to call your class the method signatures have to match, meaning the parameters you define in the method match the parameters you're calling it with, AND the return type matches ...

View answer
Issue with batch which is scheduled for every 5 minutes and didn't run for 24 hours and 5 minutes
Accepted answer
0 votes

I haven't run into your particular issue, but following my Salesforce mantra of "If it's broken, good luck getting salesforce to fix it, just work around it" you might consider switching to a sleep ...

View answer
Change Set with Record Type Changes Deploys Succesfully But Doesn't Actually Update Anything
0 votes

RecordTypes can be deployed with change sets (meaning the in browser ui for building deployments) as well as with the metadata api. If you're not seeing the changes you've made deployed to another ...

View answer
What's the practical difference between using global and public access modifiers?
Accepted answer
5 votes

PUBLIC means the class/method/variable is visible to all code in your namespace GLOBAL means the class/method/variable is visible to all code in any namespace So if you're aren't developing managed ...

View answer
Trigger to find largest Opportunity by amount & update custom field on account with its name
Accepted answer
2 votes

Never write code if you can avoid it. Instead, install Rollup Helper which is free for your first 3 rollups. Then create a rollup helper setting target field: Account.Loan_Name__c source field: ...

View answer
Count no of opportunities in the related account
1 votes

As @santanu mentioned, there is no need for apex here. Just create a standard rollup summary field to count opportunities related to an account. And your done. Never code when config will do.

View answer
Dynamic sObject Lookup field throws "SObject row does not allow errors" if lookup is entered record name that do not exist in org
0 votes

So it appears that for generic SObjects, if you submit a lookup without first clicking the lookup icon, and the string doesn't match a parent object you'll get the apparently uncatchable "SObject row ...

View answer
Linking CronTrigger sObjects to Scheduled Jobs listings
2 votes

Q1 - What's the job name? This is now pretty straightforward now that the ideas in @daniel's answer have been implemented (yes it does happen, rarely). CronTrigger cron = [SELECT CronJobDetail.Name ...

View answer
Not able to see the class scheduled by a schedulable apex
0 votes

Unfortunately there isn't any direct link between the CronTrigger table and the related apex class id (at least that they expose). See the these two ideas to vote it up. That said you've got some ...

View answer
Unable to find schedule job for apex class
1 votes

Good news, this is possible. As discussed in How can I query the class which the schedule job will call the CronTrigger and CronJobDetail tables which underly schedule jobs have a gaping hole in that ...

View answer
SObjectType.newSobject(null, true) doesn't populate default values if called in vf action method, any tips?
Accepted answer
2 votes

Yep, definitely a bug, fortunately easy work around. Since the default values seem to be completely ignored in the context of a visualforce postback, but work fine in the constructor we can work ...

View answer
SObjectType.newSobject(null, true) doesn't populate default values if called in vf action method, any tips?
0 votes

First Pass Default values for dates and picklists should work with the newSobject method. At least they do for. See below for he code I used to try and reproduce your issue. Got the excepted behavior ...

View answer
How can I query the class which the schedule job will call
4 votes

Unfortunately there isn't any direct link between the CronTrigger table and the related apex class id (at least that they expose). See the these two ideas to vote it up. That said you've got some ...

View answer
How can I delete/abort all scheduled jobs for a particular apex class?
3 votes

Good news, this is possible. As discussed in How can I query the class which the schedule job will call the CronTrigger and CronJobDetail tables which underly schedule jobs have a gaping hole in that ...

View answer
How to get custom table row headers and values on a Apex Page Table?
Accepted answer
1 votes

So I'm not 100% sure I got your intention right, but here goes. You're version is saying creating a table with a columns for each period, but no data defined, and then a final column with the input ...

View answer
Evaluate Enabling Multi-Currency
0 votes

I'm not aware of a tool like this, but in general for this sort of impact analysis I'd recommending installing some flavor of SFDC development environment (Force.com IDE, Sublime Text + MavensMate) ...

View answer
Convert Lead to a Contact for an Account not owned by user
0 votes

If opening up permissions doesn't cause other issues (i.e. allows the users to view accounts they shouldn't) this is a great approach. I've done something similar to restrict the ability to delete a ...

View answer
How to get <apex:form> to have two INDEPENDENT columns with fields?
Accepted answer
3 votes

Unfortunately you can't specify columns that way with apex:pageblocksection, it's always left-to-right. You could just use one field set and just training people to put them into the field set in the ...

View answer
Critical Update Bug? "Add a Namespace Prefix to Query Parameters and pageReference.state Properties"
Accepted answer
3 votes

When the critical update mentions query parameters it's referring the the values in the URL after the ?, so BillingCity=, Sales_Rep__c=, etc. The terminology is a bit inconsistent, see this question ...

View answer
How to avoid consequences of sandbox security token refresh - Eclipse IDE projects
3 votes

Security tokens will match what's in production after a sandbox refresh. To avoid people needing to update their credentials after a refresh you'll need to continue to use the production password / ...

View answer
How to properly handle dates returned from REST API
Accepted answer
2 votes

Dates don't have timezones, and YYYY-MM-dd is the standard (ISO-8601) format for storing them. The timezone of the user whose storing or retrieving the date shouldn't change the date value. If ...

View answer
Account Merge Trigger Execution Order
Accepted answer
7 votes

From the Apex Developer Guide Triggers and Merge Statements Merge events do not fire their own trigger events. Instead, they fire delete and update events as follows: Deletion of losing ...

View answer
1
2 3 4 5
12