Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Div
idProductTOC

On this page

Table of Contents
maxLevel2
excludeOn this page
typeflat
separatorpipe

Summary

The addRepository action can be used to add repositories to a plan. However, you must know the parameter fields that each repository uses and needs. Normally, the repository provider doesn't document this. However, they can be discovered. We have documented some examples already - see Examples for AddRepository Actionaction. If the repository type you want is not already documented or you are getting errors adding a repository (perhaps because the example is out of date), then you need to discover the fields needed.  There are 2 ways to discover these fields.

  1. Using exportPlan on an existing plan that has been created manually through the UI with the repository you want to create through automation.
  2. Using browser tools to discover fields from the UI similar to how this is done in How to determine fields for addTask.

We will just document the first option here.

Steps using exportPlan

Table plus
autoNumbertrue


StepDiscussion 
Find or create a plan using the UI that has a repository configured in the planUse whatever parameters settings that represent the repository you would like to create through automation.
Go to the command line and run the exportPlan action on the plan and find the repository in the exported data

You are mostly interested in the fields that are exported.

If there are more than 8 fields, you may need to convert some of the fields to use the fields parameter.

 


Examples

Include Page
Examples for AddRepository Action
Examples for AddRepository Action