Hi Claire, The last example is the most correct. The lengthy and difficult to use GUID is generated by the system if no ID is provided on a segment create so you are not forced to use them and you could use friendlier names, as long as they are unique. I prefer to use business time entities as it is an easier way to link a bunch of time segments together. When business entities are used it is common to do a lookup of this table to find the ID from a friendlier name. Pretty sure this is how the SLM code does it.
A couple of other tricky things with business time is that even when using entities you still need to provide 2 time segments and these have to be real although they can be set to not block out any time. The business time commands run on the server so if using them from active links you need to use the @@ syntax. Rod Harris On 17 September 2011 00:25, Sanford, Claire <claire.sanf...@memorialhermann.org> wrote: > I sent this with the wrong subject line. > > > I'm having a bit of difficulty with this calculation. > > Are they asking for the "Description" or the "ID" field on the Business Time > Segment form? I am finding that 7.4.6 takes some things very literally and > others not as much. > > The ID would be: AGBC305B2A1C59UHVyTgtsjnUgOY8v > The Description would be : Business Hours > > All of the samples have no spaces in the Business Time Segment name. > > Use the following syntax for the Application-Bus-Time2-Diff calculation: > Application-Bus-Time2-Diff "startTime" "endTime" > ["businessTimeSegmentName1" "businessTimeSegmentName2" . . . ]] > > > > So would it be: > > Application-Bus-Time2-Diff "startTime" "endTime" "Business Hours" "Holiday > Time" > > Or should it be: > > Application-Bus-Time2-Diff "startTime" "endTime" "BusinessHours" > "HolidayTime" > > Or > > Application-Bus-Time2-Diff "startTime" "endTime" > "AGBC305B2A1C59UHVyTgtsjnUgOY8v" "AGBC305B2A1C59UHVyTgtsjnUgOY8v" > _______________________________________________________________________________ > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org > attend wwrug11 www.wwrug.com ARSList: "Where the Answers Are" > _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug11 www.wwrug.com ARSList: "Where the Answers Are"