ssossossosso

Forums

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

This topic contains 2 replies, has 2 voices, and was last updated by  freelancer 3 years, 1 month ago.

  • Creator
    Topic
  • #5331

    freelancer
    Participant

    Hi,

    Thanks a lot for your product, I have another question about workflows.
    I want to create a new entity when I ‘Close as won’ an opportunity, unfortunately my entity is not related to an opportunity an has a date field. I would like to know how can I specify this field in my attribute definition.

    I’ve tried with the ‘property_path’ option but it doesn’t work for my as I my entity is not related to an opportunity so i cannot reach the correct field (I guess)

    Thank you very much for your help.

    Olivier.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #5394
    Yevhen Shyshkin
    Yevhen Shyshkin
    Oro Core

    Hello, freelancer.

    1) You can create any attribute without property path and store there any scalar or object. Examples:

    So, this attribute will be accessible through $new_account.

    Separate date field attribute can look like this:

    See attribute configuration documentation for more information.

    2) You can create @create_entity action to create entity of required type. Example:

    If you need to initialize this object with some additional data (f.e. date field), you can pass it to “data” parameter.

    3) OroCRM has Sales Process Flow that has similar actions to yours – user should enter company name, and then new account will be created based on it.

    #5438

    freelancer
    Participant

    Hi Yevhen,

    Thank you very much for your answer it worked.

    Olivier.

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

You must be logged in to reply to this topic.