API SourcedFixletAction - including end time?

I can see the below in custom fixlets where I have a 3 hour constraint:

<Settings>
...
<HasEndTime>true</HasEndTime>
<EndDateTimeLocalOffset>PT3H</EndDateTimeLocalOffset>
...
</Settings>

Is there a way to include the same in the XML post to launch a fixlet? eg: The below works to lock the members of a group but it is an open ended action.

<?xml version="1.0" encoding="UTF-8"?>
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
 <SourcedFixletAction>
   <SourceFixlet>
     <Sitename>BES Support</Sitename>
     <FixletID>295</FixletID>
     <Action>Action1</Action>
   </SourceFixlet>
   <Target>
     <CustomRelevance>(exists members whose(it = TRUE) of (groups 558957 of it) of sites)</CustomRelevance>
   </Target>
 </SourcedFixletAction>
</BES>

Solved it. Working example below.

The solution was much easier than expected (as always!). It wasn’t obvious to me that the ‘Settings’ need to be after the ‘Target’.

More time getting familiar with the BES.xsd schema in /opt/BESServer/Reference/ is in order.

<?xml version="1.0" encoding="UTF-8"?>
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
 <SourcedFixletAction>
   <SourceFixlet>
     <Sitename>BES Support</Sitename>
     <FixletID>295</FixletID>
     <Action>Action1</Action>
   </SourceFixlet>
   <Target>
     <CustomRelevance>(exists members whose(it = TRUE) of (groups 558957 of it) of sites)</CustomRelevance>
   </Target>
   <Settings>
      <HasEndTime>true</HasEndTime>
     <EndDateTimeLocalOffset>PT1H</EndDateTimeLocalOffset>
   </Settings>
 </SourcedFixletAction>
</BES>
2 Likes