Questions tagged [system-fields]
The system-fields tag has no usage guidance.
21
questions
1
vote
1
answer
173
views
Is it possible to set the Created By user when a record is created by Apex?
We have an old trigger that is set to run on the insertion of a custom object.
Recently, the handler was updated to create related records of a different object.
We've noticed that the "Created ...
0
votes
0
answers
38
views
test System field on Batch class
I have a batch that automatically archives any articles with a Status (Fixed) and published for more than 30 days (using a custom setting to verify the number of days).
But I struggle to cover the ...
0
votes
1
answer
936
views
Compiled formula is too big to execute over 5000 characters, only standard field in the formula
I know they are quite a few questions regarding formula being to long (over 5000 characters), from my understanding if the formula uses fields who are also part of other formula fields this will count ...
2
votes
1
answer
590
views
Is it possible to edit the Audit fields on UPDATE?
I found a question that was asked 7 years ago but they are only mentioning that Audit fields can be change on Create/Insert...
What about when fields are already created and needs to update the ...
2
votes
0
answers
112
views
Current user's locale in ProcessBuilder
I am trying to access the Locale field of the running user in Process Builder. The field is not available from the field list. I have also tried to access the field in the following ways:
$User....
1
vote
2
answers
172
views
How do I determine by Apex code if Custom Field allows setting Field Level Security and if can be edited?
To assign correct FLS permissions in bulk for a given profile I need to know which fields are readonly and which fields support Field Level Security.
I see that there is field IsFlsEnabled in ...
0
votes
1
answer
31
views
Invalid field ParentServiceContractId for SObject ServiceContract
I'm getting the error "Invalid field ParentServiceContractId for SObject ServiceContract" when I try to add it to a Visualforce page.
I see the field listed under standard fields and referenced in ...
0
votes
1
answer
756
views
Can I write a SQL query that creates a default value in a Data Extension?
I'd like to query the CLICK system table for members who clicked a certain URL string (for example, http://www.store.com/men) and assign a default value to those members.
My initial thought was to ...
2
votes
1
answer
595
views
LastModifiedDate or SystemModstamp: Which one to verify for concurrent modification exception?
I have a integration requirement where from external system salesforce records can be updated. So, before updating we need to verify if the record has been modified by some other user/process.
Is ...
1
vote
1
answer
524
views
system fields not invoking apex update trigger
I am trying to send an email to the contact owner when the email on contact has bounced. Below is the code, it works and send email to the contact if I remove the IsEmail Bounced condition.
trigger ...
3
votes
2
answers
513
views
How do I know if a record was updated manually?
Background
I have a piece of my system with rather complex architecture.
I also create another object (Interaction_Log__c) where the user enters some other data about the call.
On call-complete, I ...
1
vote
2
answers
3k
views
Set a specific value for Created By field of a custom object's all records in Salesforce
In salesforce I have a requirement that, I need to set the Created By field value of an object's all records to a particular user, irrespective of the user who creates it through UI/Apex. So how can I ...
2
votes
1
answer
7k
views
How do I get Last Modified Date of Particular field
For the Tracking purpose I need the last modified date of a field(any datatype). I know there is last modified date system field for a record but I need last modified date of a field.
My Questions ...
0
votes
1
answer
2k
views
Can I update data without updating the LastModifiedDate for a particular transaction?
I am migrating over legacy fields within a Salesforce org, but not performing any actual data updates (just moving some fields around).
For this reason, I'd like to preserve the existing ...
1
vote
1
answer
1k
views
Is it possible to track the 'isDeleted' field for custom objects?
is there any way to track when record of a custom object was deleted or restored from recycle bin? I tried to export and find records from "History: Custom object" but this seems like the 'isDeleted ...
3
votes
1
answer
24k
views
Get current logged in users data in VF page and extension
I want to display the currently logged in users in my VF page.
Calling the following is not allowed:
<apex:outputField label="Raised by" value="{!$User.Id}"/>
I would like to know how else I ...
1
vote
0
answers
287
views
How to add combination pick-list in any object of salesforce (Standard Fields of object does not meet requirement )
I am new to Salesforce, so i am asking for your suggestion here.
How to add combination pick-list in any object of salesforce (Standard Fields of object does not meet requirement ).
I have two ...
2
votes
1
answer
233
views
how to change the case creator
I want to be able to change the case creator (I have a workflow rule that fires an email when the case goes to "waiting on update" and sometimes the case creator needs to be updated to prevent the ...
3
votes
3
answers
3k
views
How to check whether Audit fields are editable?
Is there any way to check whether we have a permission to change audit fields in salesforce .
Is salesforce provide any user interface to show information which audit fields are editable in which ...
5
votes
1
answer
616
views
LastModifiedDate on Parent Opportunities
If we edit the Parent Opportunity (Parent_Opportunity__c) field On an opportunity, It was observed that LastModifiedDate of both parent and child opportunity get updated.Last Modified Date was getting ...
3
votes
2
answers
1k
views
System/Audit fields work only partially (setting CreatedDate - works, setting LastModifiedDate - doesn't)
I am trying to create an Event in Salesforce via SOAP API. Setting System/Audit fields via API is enabled.
I see that the resulting SOAP Envelope includes correct values for CreatedById, CreatedDate, ...