ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

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 adriwan_kenoby 1 year, 3 months ago.

  • Creator
    Topic
  • #57985
    adriwan_kenoby
    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
  • #57986
    adriwan_kenoby
    adriwan_kenoby
    Participant

    Should I use something like

    #57987
    adriwan_kenoby
    adriwan_kenoby
    Participant

    In fact it’s possible to use

    #57988
    Mike Kudelya
    Mike Kudelya
    Moderator

    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:


    #57989
    adriwan_kenoby
    adriwan_kenoby
    Participant

    Hi,

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

    How can I do ?

    Thanks for advice.

    #57990
    Mike Kudelya
    Mike Kudelya
    Moderator

    Hi

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


    #57991
    adriwan_kenoby
    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)

You must be logged in to reply to this topic.

ssossossosso