C# API Getting the Segment ID after using createSegment
how do I, using C# API, get the Segment ID after using createSegment function
how do I, using C# API, get the Segment ID after using createSegment function
To list the segments or items within that are assigned to a project, you need to use im issues. If you already have a query that returns all items for the project, you can use that in the options. For example:
im issues --query="Items in Release1"
If you don't have a query, there's a couple options. You could create a query to use. Or you can use the --queryDefinition option for im issues:
im createquery --name="Items in Release1" --queryDefinition="(field["Project"] = "/Projects/Release1")"
OR
im issues --queryDefinition="(field["Project"] = "/Projects/Release1")"
To list only segment items, the queryDefinition is
"((field["Project"] = "/Projects/Release1") and (item.segment))"
Note: The list of published commands for the API can be found in the Integrations Builder Guide. these are the commands that we guarantee to work and give expected responses in the API.
Information on specific commands (such as options, syntax, output) is found in the Online Help under the CLI Reference section.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.