OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – How do I? Questions How can I get a segment created via UI in controller or a command ?

This topic contains 6 replies, has 2 voices, and was last updated by  adriwan_kenoby 7 years, 5 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #29102

    adriwan_kenoby
    Participant

    Hi Oro Team !

    I am searching for a method to get the segment table created through the UI by the segmentation tools.

    My Case:

    I can’t access this records via Repositories, their are created dynamically, so then, how could I do that in the code please ?

    Maybe I don’t use the correct Repository…

    The query is already made in the datagrid and I would like to get this records.

    Maybe get the controller directly through the service’s container. Am I on the good way ?

    Sorry for my french…

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #29103

    adriwan_kenoby
    Participant

    Should I use something like

    #29104

    adriwan_kenoby
    Participant

    In fact it’s possible to use

    #29105

    Mike Kudelya
    Participant

    Hi

    As i understood do you want to get segment entity which has been created here /segment/create?
    If yes, you should use this code:

    #29106

    adriwan_kenoby
    Participant

    Hi,

    I need to refresh the Segment to get the correct segmentSnapshot.

    How can I do ?

    Thanks for advice.

    #29107

    Mike Kudelya
    Participant

    Hi

    You can use the run function of segment manager. Try to execute:

    #29108

    adriwan_kenoby
    Participant

    Really thanks Mike.

    I was on the way but it’s helpful.

    Kind Regards,

    Adrien

Viewing 6 replies - 1 through 6 (of 6 total)

The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.

Back to top