Incorrect value returned for DataRetentionPeriod when making SOAP Retrieve Call
Trailblazer Community

Incorrect value returned for DataRetentionPeriod when making SOAP Retrieve Call

Marketing Cloud API

Last updated 2021-12-16 ·Reference W-10102207 ·Reported By 0 users

In Review

Summary
The "DataRetentionPeriod" attribute is showing an incorrect value when retrieved via SOAP API

When DE has retention of x months the retrieve call is depicted as x Weeks, and if the DE has Weeks set the Retrieve Call returns month.

Repro
Make SOAP API request to get details of a data extension object when the Data retention period is set to weeks or months

<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ObjectType>DataExtension</ObjectType>
<Properties>ObjectID</Properties>
<Properties>CategoryID</Properties>
<Properties>CustomerKey</Properties>
<Properties>Name</Properties>
<Properties>IsSendable</Properties>
<Properties>SendableSubscriberField.Name</Properties>
<Properties>DataRetentionPeriod</Properties>
<Properties>DataRetentionPeriodLength</Properties>
<Properties>DataRetentionPeriodUnitOfMeasure</Properties>
<Properties>DeleteAtEndOfRetentionPeriod</Properties>
<Filter xsi:type="SimpleFilterPart">
<Property>CustomerKey</Property>
<SimpleOperator>equals</SimpleOperator>
<Value>xxxx-xxxxx-xxxxx-xxxx-xxxx-xxxx</Value>
</Filter>
</RetrieveRequest>
</RetrieveRequestMsg>
</s:Body>
</s:Envelope>

Workaround
Please check retention period within the UI to confirm true value.

Reported By (0)

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.