• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

SDK: Target Collection

New Here ,
Apr 03, 2021 Apr 03, 2021

Copy link to clipboard

Copied

Is there a way to set a newly created (via the SDK) collection as the target collection? 

TOPICS
SDK

Views

156

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Apr 03, 2021 Apr 03, 2021

Unfortunately not. You can set the currently selected source to be the current target collection:

 

catalog:setActiveSources (catalog.kTargetCollection) 

 

and from there you can use catalog:getActiveSources() to discover the name of the current target collection. But the SDK doesn't let you change the target collection.

Votes

Translate

Translate
LEGEND ,
Apr 03, 2021 Apr 03, 2021

Copy link to clipboard

Copied

LATEST

Unfortunately not. You can set the currently selected source to be the current target collection:

 

catalog:setActiveSources (catalog.kTargetCollection) 

 

and from there you can use catalog:getActiveSources() to discover the name of the current target collection. But the SDK doesn't let you change the target collection.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines