Enable API Attribute ID on bulk for existing attributes

book

Article ID: 210702

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

After the Clarity upgrade, we want to enable the API Attribute ID on a bulk for existing attributes. Is there a way to achieve this instead of manually updating them one by one?

 

Resolution

Post 15.8.1, the API Attribute Id can be updated via XOG 

Sample of XOG that can be used to do the update:

<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_contentPack.xsd">
  <Header action="write" externalSource="NIKU" objectType="contentPack" version="15.5.0.225"/>
  <contentPack update="true">
    <objects>
      <object code="project" dwEnabled="true" dwTrendEnabled="true" entityCodeAttribute="entity" fiscalPeriodTypeAttribute="odf_period_type"
        pageInstanceType="SRM_PROJECTS" pageLayoutAttribute="page_layout" periodEndAttribute="odf_period_end" periodStartAttribute="odf_period_start"
        raiseEvents="true" source="niku.com" update="true">
        <nls description="The Project Object" languageCode="en" name="Project"/>
      <customAttribute code="obj_request_type" dataType="string" apiAlias="objrequesttype"></customAttribute>