We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [time]

The tag has no usage guidance.

23 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
455 views

How to Avoid exceeding CPU Time Limit in Test Classes?

I am currently updating test classes in our org and it seems that most of them are exceeding the CPU Time Limit. They are using the @testSetup to create a lot of test data and it seems that these DML ...
1
vote
0answers
72 views

JSON time fields

We have a problem with deserialize and serialize salesforce time fields Since Json and salesforce time fields both consist of "colon" we need to replace with a special character before deserialize ...
1
vote
0answers
20 views

How to get records created between timeframe in a report

I need to create a report of all the records between 7am to 5pm CST/CDT everyday. How can I achieve this? The solution I tried - Created a formula field which extracts Hours from created date (...
1
vote
0answers
68 views

Is it possible to calculate the difference between 2 Time Fields with Formula?

I am trying to calculate the difference between 2 Time-fields with a FORMULA . (So no DateTime) I know it is possible in Apex, but I am wondering if it is possible in a Formula as well. I tried a lot ...
1
vote
1answer
294 views

Using the wait activity by attribute for time values only

I have a data extension that has all our subscribers and a column with the most optimal hour of the day to send them an email. I want to reference this in my journeys and add this attribute in the ...
1
vote
1answer
1k views

Filter Reports by the Time of their CreatedDate

I figured that the CreatedDate will not show the time in the reports section. So I made a DateTime formula field to take the value from CreatedDate. Now this shows the time value inside the reports. ...
1
vote
0answers
144 views

Debug Logs Explanation

I'm trying to understand the debug logs Salesforce provides. There are actually two duration(in ms) for every webservice called. One at the top One at the bottom giving up split up method wise The ...
1
vote
1answer
131 views

Why week of year is wrong?

I'm using this code : Time t = Time.newInstance(12, 0, 0, 0); DateTime dt = DateTime.newInstance(Date.parse('22/02/2016'), t); system.debug(LoggingLevel.WARN, Integer.valueof(dt.Format('w'))); It ...
1
vote
0answers
93 views

How to create a Custom Pop Up for Task?

I want to create custom pop up for Tasks which will be opening on specified time . Because standard task pop up will only come for Day wise(Again it will calculate based on starting of the day) and I ...
1
vote
1answer
33 views

Calculate response time for task closure

Please help me in the approach. I have a task object and a field called task executioner.I want to have timer set on the record. When the user will edit the record the timer will start and when it is ...
0
votes
0answers
12 views

How can I create a VF component that follows you like the header bar?

I need a component that will follow you from page to page like the header I need to have a visualforce component that simply shows a timestamp no matter where you are on the org.I was thinking ...
0
votes
1answer
18 views

How to get time left on OrgPartition from Platform Cache?

Is it possible to get the time left from Platform Cache for a particular partition? You initiate by: Cache.OrgPartition orgPart = Cache.Org.getPartition('local.myStore'); You put the value by (...
0
votes
0answers
14 views

A problem with the “Case Age in Business Hours” app

I have a confusing situation on my hands involving the "Case Age in Business Hours" application (this one: https://appexchange.salesforce.com/appxListingDetail?listingId=a0N300000016ccNEAQ ) It is ...
0
votes
0answers
18 views

setInterval spikes on Visualforce Page / Works on other HTML Pages

I am trying to use javascript's setInterval() function to create a timer that actions at certain times, however the following Javascript which works outside of Visualforce, jumps from 0 to a random ...
0
votes
0answers
31 views

DateTime newInstance doesnt get in user locale

In my code I try to set datetime based on selected location. The Idea is, when the user select locale and then the time, record will be saved with selected datetime value based on selected locale. But ...
0
votes
1answer
237 views

Calculate time difference between two date time fields

I have a process builder by which I am calculating the time difference between NOW() and another Case object date field. My formula goes like this Time_Spent__c = NOW() - Start_Time__c However ...
0
votes
1answer
193 views

Making 24 hours difference in formula

what is 1.8 in this expression. I have seen people using now() + (-1.8) or now() + (1.8) for making 24 hours difference. What exactly is 1.8
0
votes
0answers
17 views

Enable using time type field in our production

We want to use the new time field in prod. However, it doesn't seem to be available yet in our prod. It seems to be there in our sandboxes though. Is there a way we can enable this beta feature?
0
votes
0answers
543 views

Creating Time picker in lightning

Can Anyone please help me with creating time picker in lightning ? There is a component ui:inputDateTime for having time & date picker both at the same time and there is a single component for ...
0
votes
1answer
484 views

Datetime field value always show in GMT for all users

I have a requirement for a particular date time field that should be shown in GMT time zone always irrespective of the logged in users time zone. Is that feasible to do? This requirement is for a ...
0
votes
1answer
28 views

Test scheduled class

I am scheduling a class which performs some computations I want to know how to track the execution of class apart from viewing scheduled jobs as I have scheduled the class to execute at system time ...
0
votes
1answer
94 views

Add 2 Different Times and Return value in time(Formulae field) in HH:MM format

I need results of two fields of type text in time format to be the same time format and then the result has to be time of HH:MM format aswell text in formulae field
0
votes
1answer
1k views

About createUser method from Auth.SamlJitHandler

for the implementation of Auth.SamlJitHandler I created a person account A and a User account U which are connected using U.RoleId = A.PersonContactId. I can not avoid this step. This makes the ...