Digital Media Suite API Forums

« Back to Digital Signs API Forum

Get all applications scheduled for a date API

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
 
I am currently accessing schedule list using /xTAS-core/api/rest/scheduler/schedule/date/{YYYY-MM-DD} url, but I am seeing duplicate entries for the same schedule with different taskId when Repeat is activated.
 
            <schedule>
                  <taskId>177</taskId>
                  <from>2011-05-23T00:21:00</from>
                  <to>2011-05-27T15:21:00</to>
                  <repeat>Daily</repeat>
                  <status>published</status>
                  <groupId>18</groupId>
                  <appDaoId>75</appDaoId>
                  <title>LOCAL--TV1</title>
                  <subType>Digital Signage</subType>
                  <color>235,144,67</color>
                  <parentId>177</parentId>
                  <popEnable>true</popEnable>
                  <cmdResult>
                        <start/>
                        <startOkNum/>
                        <startFailedNum/>
                        <stop/>
                        <stopOkNum/>
                        <stopFailedNum/>
                  </cmdResult>
            </schedule>
            <schedule>
                  <taskId>178</taskId>
                  <from>2011-05-23T00:21:00</from>
                  <to>2011-05-27T15:21:00</to>
                  <repeat>Daily</repeat>
                  <status>published</status>
                  <groupId>18</groupId>
                  <appDaoId>75</appDaoId>
                  <title>LOCAL--TV1</title>
                  <subType>Digital Signage</subType>
                  <color>235,144,67</color>
                  <parentId>177</parentId>
                  <popEnable>false</popEnable>
                  <cmdResult>
                        <start/>
                        <startOkNum/>
                        <startFailedNum/>
                        <stop/>
                        <stopOkNum/>
                        <stopFailedNum/>
                  </cmdResult>
            </schedule>
 
Is there any way to avoid duplicate elements?
 
Thanks.