• myat myat
  • NEWBIE
  • 10 Points
  • Member since 2015
  • Ms

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 6
    Replies
Hello everyone,

I created a new trailhead playground and found that  there is no option for "Enable Unlocked Packages and Second-Generation Managed Packages" in my playground and I can't continue for my trailhead module. Appreciate for your advice.

myat
Hello,

I am trying to import child accounts using import data wizard (providing parent account Id by mapping with Account:Parent Account), but seems it's not working.
Anyone could advise me?
myat
Date.monthsBetween method returns one day less. Is it how date method working?
eg.
date fDate = date.newInstance(2018, 09, 01);
date sDate = date.newInstance(2018, 09, 30);
system.debug(fDate.monthsBetween(sDate));

Thanks.
Myat
I try to format below datetime and getting incorrect return. any idea?

datetime date1 = datetime.newInstance(2018, 12, 29) ;
datetime date2 = datetime.newInstance(2018, 12, 30) ;
datetime date3 = datetime.newInstance(2018, 12, 31) ;

system.debug('date1 ==>' + date1 + ' = ' + date1.format('dd MMMM YYYY'));
system.debug('date2 ==>' + date2 + ' = ' + date2.format('dd MMMM YYYY'));
system.debug('date3 ==>' + date3 + ' = ' + date3.format('dd MMMM YYYY'));

debug log:
date1 ==>2018-12-28 17:30:00 = 29 December 2018
date2 ==>2018-12-29 17:30:00 = 30 December 2019
date3 ==>2018-12-30 17:30:00 = 31 December 2019

Thank you.



 
Hello everyone,

I created a new trailhead playground and found that  there is no option for "Enable Unlocked Packages and Second-Generation Managed Packages" in my playground and I can't continue for my trailhead module. Appreciate for your advice.

myat
Date.monthsBetween method returns one day less. Is it how date method working?
eg.
date fDate = date.newInstance(2018, 09, 01);
date sDate = date.newInstance(2018, 09, 30);
system.debug(fDate.monthsBetween(sDate));

Thanks.
Myat
I try to format below datetime and getting incorrect return. any idea?

datetime date1 = datetime.newInstance(2018, 12, 29) ;
datetime date2 = datetime.newInstance(2018, 12, 30) ;
datetime date3 = datetime.newInstance(2018, 12, 31) ;

system.debug('date1 ==>' + date1 + ' = ' + date1.format('dd MMMM YYYY'));
system.debug('date2 ==>' + date2 + ' = ' + date2.format('dd MMMM YYYY'));
system.debug('date3 ==>' + date3 + ' = ' + date3.format('dd MMMM YYYY'));

debug log:
date1 ==>2018-12-28 17:30:00 = 29 December 2018
date2 ==>2018-12-29 17:30:00 = 30 December 2019
date3 ==>2018-12-30 17:30:00 = 31 December 2019

Thank you.



 
Working on Superbadge challenge, and I'm on part 6. 

Automate Fulfillment Cancellation Actions
User-added image

*Fulfillment is a custom object
*Adventure is the product object renamed 

This is the error I'm getting: 
User-added image

I believe I did everything correctly, but the error seems to be the cancelled fulfillment not updating the adventure package correctly. I believe I may not be referencing the original adventure package correctly. 

*adventure package is opportunity product renamed. 

Here is what I did:
User-added image

Please can anyone give me any insight into this. Thank you.