AnsweredAssumed Answered

Issue with Updating Resource Calendars in Bulk

Question asked by Pankaj_Navlekar on May 6, 2013
Latest reply on May 6, 2013 by another_martink
Hi there,

I have a situation where I need to update Calendar Shifts for a few hundred resources ( and I'm using XOG for this). However, many resources have their weekdays marked as Non-workdays in their calendars since they are part timers. (e.g. All Mon's, All Fri's etc.)

Is there a way to know, for a resource, which weekday(s) have been marked as non-workdays so I can make their calendars accordingly in my XML otherwise it will overwrite their calendar settings if I do XOG? We are on 12.1. Attached is a sample XML I'm using

<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_resource.xsd">
<Header action="write" externalSource="NIKU" objectType="resource" version="12.1.0.5840"/>
<Resources>
<Resource employmentType="EMPLOYEE" entityCode = "***" externalId="1234" resourceId="abcd" resourceType="LABOR" username="abcd">
<PersonalInformation emailAddress="abcd" firstName="abcd" lastName="abcd"/>


<Calendar baseCalendar="abcd" resetCalendar="false">
<Days>
<Day dayOfWeek="MON" isWorkDay="true">
<Shifts>
<Shift finish="12:00:00" start="08:00:00"/>





<Shift finish="16:30:00" start="13:00:00"/>
</Shifts>
</Day>



<Day dayOfWeek="TUE" isWorkDay="true">
<Shifts>
<Shift finish="12:00:00" start="08:00:00"/>





<Shift finish="16:30:00" start="13:00:00"/>
</Shifts>
</Day>



<Day dayOfWeek="WED" isWorkDay="true">
<Shifts>
<Shift finish="12:00:00" start="08:00:00"/>





<Shift finish="16:30:00" start="13:00:00"/>
</Shifts>
</Day>



<Day dayOfWeek="THU" isWorkDay="true">
<Shifts>
<Shift finish="12:00:00" start="08:00:00"/>





<Shift finish="16:30:00" start="13:00:00"/>
</Shifts>
</Day>



<Day dayOfWeek="FRI" isWorkDay="true">
<Shifts>
<Shift finish="12:00:00" start="08:00:00"/>





<Shift finish="16:30:00" start="13:00:00"/>
</Shifts>
</Day>
</Days>
</Calendar>
</Resource>
</Resources>
</NikuDataBus>

Outcomes