Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [createddate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
134 views

Get number of records created per each of last 12 month in apex

I need to query Contacts which were created by the current user per each of the last 12 month and map them by month when they were created. So I need Map<String,Integer> (Map<Month,...
user avatar
2 votes
1 answer
153 views

Unable to Set CreatedDate only on Knowledge__kav

This question relates very much to Unable to Set Created date even after enabling Set Audit Fields However, my problem is specifically related to the Knowledge__kav SObject. I'm trying to import ...
user avatar
  • 285
0 votes
2 answers
105 views

Use field value with LAST_N_MONTHS

I am trying to accomplish something like the following: [SELECT Id, CustomMember__c, CreatedDate FROM CustomObject WHERE CreatedDate = LAST_N_MONTHS:CustomMember__r.CustomLevel__r.CustomPeriod__c ...
user avatar
0 votes
1 answer
554 views

Unable to see created date in the mapping while importing data for lead object using data loader

I am using a Sandbox account to load data into the Leads object from a CSV via the data loader. However, I am unable to see the created date, last modified date (Audit fields) in the mapping window. ...
user avatar
2 votes
2 answers
479 views

Get records created on a specific day

I'm programming a batch that needs to mail community users if they've created their user exactly account 39 days ago. It seems difficult to query on a specific day ... I first tried : Date limitDay =...
user avatar
2 votes
2 answers
405 views

CreatedDate of new record (Time)

My Org is set to GMT+1 which is my timezone. (Stated in the Company Information). I have created a record at 11:30 am but when I retrieve the CreatedDate field it says that it was created at 10:30 am....
user avatar
6 votes
2 answers
3k views

Who created the Lightning Web Component?

Is there the possibility to query Lightning Web Component as for every other metadata (apex class, visualforce, etc...)? I see them on VS Code but I cannot know the CreatedBy, CreatedDate and the ...
user avatar
  • 1,379
0 votes
2 answers
491 views

Issue in workflow field update based on created date

I am not able to understand why field update is working differently for these two cases. Workflow field update: ObjectCase Field to UpdateCase: Target Date Field Data TypeDate Re-evaluate Workflow ...
user avatar
0 votes
1 answer
779 views

Difference in Case Created Date in UI and System Backend

created date on case UI is displaying 5/9/2018 date but in backend created date is showing value 6/9/2018 When I am querying through developer console. I have one workflow rule to calculate Target ...
user avatar
0 votes
2 answers
614 views

CreatedDate is not working dynamically

String s = 'LAST_N_DAYS:7'; Date d = date.valueOf(s); List<genesis__Applications__c> appList = [SELECT Id,Name,Branch_Name__c FROM genesis__Applications__c WHERE createDdate <= : d]; Not ...
user avatar
0 votes
1 answer
320 views

Formula field on opp using created date, record types, profiles, and multiple stage names

This formula works for all my requirement except the underlined part: IF( AND(RecordType.Name = 'Solutions', DATEVALUE(Account.CreatedDate) <= TODAY() - 10, CreatedBy.Profile....
user avatar
  • 9
1 vote
2 answers
2k views

Difference of last modified date and created in seconds- formula field

When a record is created and trigger executes (after insert)- updating a field, I want to calculate the time difference between the last modified date and the created date in seconds. If it's greater ...
user avatar
  • 541
3 votes
0 answers
670 views

CreatedDate Not Available as Mapping Option in Salesforce Data Loader When Inserting New Records

There's a need for me to load records in our SF sandbox wherein CreatedDate standard field in Case object must be inputted manually in csv file, instead of the system automatically setting itself. I ...
user avatar
  • 335
3 votes
3 answers
2k views

setCreatedDate Not Working, CreatedDate is Null in Debugs

SetCreatedDate is not working, CreatedDate is null in the debug logs. What gives? @isTest public class PurgeOldCats_Test { static testMethod void PurgeOldCats() { Date today = date.today(); ...
user avatar
2 votes
1 answer
3k views

Filter Reports by the Time of their CreatedDate

I figured that the CreatedDate will not show the time in the reports section. So I made a DateTime formula field to take the value from CreatedDate. Now this shows the time value inside the reports. ...
user avatar
  • 4,441