cloud computing in salesforce

 Open Office Hours

A place where we can informally discuss whatever comes to mind...
Apr 16, 2021 01:46
Could you please help me over there
Apr 16, 2021 01:44
Hi Derek , I cannot able to do recursion blocking of triggers
 
Mar 7, 2017 12:36
@Mahmood Guide me in stack exchange for bulkify the code
Mar 7, 2017 11:03
ok Thank you @Mahmood
Mar 7, 2017 11:03
this is the last one i am struggling
Mar 7, 2017 11:03
yes
Mar 7, 2017 11:02
ok
Mar 7, 2017 11:01
Map<id.key> value what i have to give?
Mar 7, 2017 11:00
ok @Mahmood
Mar 7, 2017 11:00
just tell map only
Mar 7, 2017 11:00
ok
Mar 7, 2017 10:59
No your idea is correct
Mar 7, 2017 10:59
trigger ignoreweekends on order (before insert,before update) {
for (order so : Trigger.new) {
list<account> cd =[select id,JDE_Date_Delivery_Offset__c from account where id =:so.accountid];

for(account et : cd)
{
for(integer i=0;i<=et.JDE_Date_Delivery_Offset__c;i++)
{
Datetime dt = DateTime.newInstance(Date.today() +et.JDE_Date_Delivery_Offset__c.longvalue(), Time.newInstance(0, 0, 0, 0));
String dayOfWeek=dt.format('EEEE');
if(dayOfWeek == 'saturday' || dayOfWeek == 'sunday')
{
et.JDE_Date_Delivery_Offset__c = et.JDE_Date_Delivery_Offset__c+ 1;
Mar 7, 2017 10:59
please modify my code
Mar 7, 2017 10:59
For weekends it is working
Mar 7, 2017 10:58
for holiday only
Mar 7, 2017 10:58
Mahmood
Mar 7, 2017 10:58
can you do some modifications on my code
Mar 7, 2017 10:58
you told to use map and contains key like that
Mar 7, 2017 10:58
inserting holiday dates i want to skip the dates
Mar 7, 2017 10:57
For Holiday custom object
Mar 7, 2017 10:57
But one small thing I have not able to complete
Mar 7, 2017 10:56
Now i have done with the help of you
Mar 7, 2017 10:56
I have asked a query about the skipping Weekends for saturday and sunday with the help of trigger code
Mar 7, 2017 10:55
How are you Mahmood,
Mar 7, 2017 10:55
Hello
Mar 7, 2017 10:51
Hi @Mahmood
Mar 3, 2017 14:25
ok Thank you so Much @Eric
Mar 3, 2017 14:23
I will try My best
Mar 3, 2017 14:23
ok Thank you@Eric
Mar 3, 2017 14:21
guide Me Please @Eric
Mar 3, 2017 14:21
@Eric
Mar 3, 2017 14:21
ok , give sample code guidelines , I will develop from that
Mar 3, 2017 14:15
Is it possible to acheive in trigger code
Mar 3, 2017 14:15
using before insert
Mar 3, 2017 14:15
deleivery date should not be placed on these dates how?
Mar 3, 2017 14:14
For Me I want to skip weekends such as saturday and sunday
Mar 3, 2017 14:14
offset value as 2 , created date of order + 2
Mar 3, 2017 14:13
If i create order on Monday the deleivery date should be wednesday
Mar 3, 2017 14:13
Two fields are there in order
Offset - Number
Deleivery Date - Date
if i create the order record with todays date and offset value as 2 then deleivery date should be on Tuesday (Saturday and sunday are weekends)
Mar 3, 2017 14:11
I have strucked with the one Major conflict
Mar 3, 2017 14:09
Hi How are You ?
Mar 3, 2017 14:09
Thank you for My Kind Request. for coming this room @Eric
Mar 3, 2017 14:04
Hi @Eric
Mar 3, 2017 13:57
ok Thank you for Guide me this Much of Information
Mar 3, 2017 13:53
Guide Me Mahmood Please
Mar 3, 2017 13:52
Is there any default format is available for saturday and sunday
Mar 3, 2017 13:52
for weekends skipping
Mar 3, 2017 13:51
If i take for skipping i want next two days name
 
Mar 3, 2017 15:08
Hi @AdrianLarson