Schema autocomplete
#1
Posted 20 Jan 2017 and edited 20 Jan 2018
#2
Posted 20 Jan 2017
Hi Jake,
Thank you for contacting us with this issue.
The completion of schema elements, in particular for fields, is already implemented in Apex files. Please let me know if this doesn't work for you. The reason for the absent completion suggestions can be that some objects are not downloaded to your TWS project.
Further enhancing of the Code Completion for Schema elements will be done in a frame of current improving the Code Assitance functionality. Our developers are working on this.
If some other necessary suggestions are absent in the Code Completion list, please write us about this. We will investigate these cases and will work on this.
Thank you,
Kate
Kate Dulko
Customer Relations
The Welkin Suite
twitter: @KateDulko
skype id: d_katerina
e-mail: kate.dulko@welkinsuite.com
#3
Posted 30 Jan 2017
trigger TrackedAction on Tracked_Action__c(before insert) {
for (Tracked_Action__c newTrackedAction : System.Trigger.new) {
//validate if there is a valid enrollment for contact
List enrollments = [select Id, Effective_Date__c, End_Date__c
from Enrollment__c
where
(
(Effective_Date__c <= :newTrackedAction.Date__c AND End_Date__c >= :newTrackedAction.Date__c) OR
(Effective_Date__c <= :newTrackedAction.Date__c AND End_Date__c = null)
)
and Enrollee__c = :newTrackedAction.Contact__c];
if (enrollments.isEmpty())
{
newTrackedAction.Date__c.addError('A valid enrollment cannot be found for the contact and the date specified.');
}
else
{
if newTrackedAction.Type__c
}
}
}
#4
Posted 30 Jan 2017
#5
Posted 31 Jan 2017
Kate Dulko
Customer Relations
The Welkin Suite
twitter: @KateDulko
skype id: d_katerina
e-mail: kate.dulko@welkinsuite.com