• Swarnava Saha
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 3
    Questions
  • 2
    Replies
I have created a Workflow Rule with a workflow action to update a datetime field base on the user's current timezone's datetime (not the system timezone).
I want to use the below formula in my workflow action:
Datetime now = Datetime.now(); Integer offset = UserInfo.getTimezone().getOffset(now); Datetime local = now.addSeconds(offset/1000);
I am writing the formula in Workflow as:-
now.addSeconds( UserInfo.getTimezone().getOffset(Datetime.now())/1000 )
but it is showing some error How can I resolve this?
Hi, 
     I am a newbie in salesforce. I have created users in the org. But the first time they are trying to login, a verification code is being asked? How can I disable it?
Hi,
     I am a newbie in Salesforce. I am working on Customer Service Templates and I am not getting the limitations of this template. I need to know what are the features that do not have pre-built components.
     I have existing tabs. Can I remove those existing tabs and records using Customer Service Template?

Thanks and Regards,
Swarnava Saha.
I have created a Workflow Rule with a workflow action to update a datetime field base on the user's current timezone's datetime (not the system timezone).
I want to use the below formula in my workflow action:
Datetime now = Datetime.now(); Integer offset = UserInfo.getTimezone().getOffset(now); Datetime local = now.addSeconds(offset/1000);
I am writing the formula in Workflow as:-
now.addSeconds( UserInfo.getTimezone().getOffset(Datetime.now())/1000 )
but it is showing some error How can I resolve this?
I need to get the current time but to be in type DateTime.

I use:
DateTime now = System.now();
but it returns wrong time.

I execute the code in 2017-08-04 00:38:46 AM

but it returns
00:38:46:023 USER_DEBUG [138]|DEBUG|now 2017-08-03 21:38:46
How can I get my correct current local time 2017-08-04 00:38:46?

I had even tried with:
DateTime now = DateTime.parse(System.Now().format());
but I still get wrong time.
01:10:09:021 USER_DEBUG [139]|DEBUG|now 2017-08-03 22:10:00
How can I get the correct current local time?



 
Hi,
I have to replicate the New Case to create a new case in lightning component. I have to create look up input box in that page.
and Store the value in case object after clicking the Save button.

Can anybody help me with the creation of lookup input field and storing it into the Case object?

Thanks