Skip to main content

Notifications

Announcements

No record found.

Customer Insights - Journeys forum

How to create a segment using API

Posted on by 10

Scenario:

I want to create a segment by calling an API instead of doing it manually. Lets say I want to select list of contacts and click on custom button "Create Segment", I want to create a static segment with all the selected contacts. 

 

Question:

I am able to create a segment through an API, but how to add contacts to the segment and send the segment to Live using API.

Categories:
  • Suggested answer
    RE: How to create a segment using API

    Hello,

    We are working on a dedicated API for Segment management that will allow to control the Segment lifecycle.

    At the moment it is not possible to control via API whether a Segment is life or not. As you have found out already you can already create and modify the data of a Segments that are captured in CRM. But we are missing the capability of going live with those changes.

    For Static segments the list of members is maintained in a field in the segment entity. Also the Query of a Compound or Dynamic segment is maintained as fields on the Segment entity. But again we are missing capabilities of composing the query, validating and controlling the lifecycle of the segment.

    This said, it is possible today to generate segments via API code and then leave it to users in the UI to go live with those segments.

    The first release of the segment API will be available in Spring release 2019.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans