web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Create opportunity field automatically

(0) ShareShare
ReportReport
Posted on by 1,670

Hi,

i need to add new option list to opportunity contains the source of opportunity (website, fax, mobile,mail.... ) and when the user choose one of option in the list, new field created depend in the type of option (mail field, mobile number...), how to customize or develop this, any idea ?

thanks. 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Abed Haniyah Profile Picture
    4,287 on at

    Dear Ammar,

    You can use business rules, please take a look to this link : www.dynamicscrmpros.com/hiding-section-fields-microsoft-dynamics-crm-2013-using-business-rules

    Regards,

    Abed.

  • Verified answer
    Aileen Gusni Profile Picture
    44,524 on at

    Ammar,

    You can create new field programmatically:

    Using CreateAttributeRequest

    msdn.microsoft.com/.../gg509025.aspx

    msdn.microsoft.com/.../microsoft.xrm.sdk.messages.createattributerequest.aspx

    Hope this helps.

    Thanks.

  • Verified answer
    Bruno Lucas Profile Picture
    5,421 on at

    create one field to enter the data, set it to be hidden and use the business rule to enable\display the field and validate it according to the option chosen on the picklist\optionset

    www.dynamicscrmpros.com/hiding-section-fields-microsoft-dynamics-crm-2013-using-business-rules

  • Verified answer
    Aileen Gusni Profile Picture
    44,524 on at

    Ammar,

    What do you want to achieve?

    -Create new field in the Opportunity Entity

    -Create new Option Set value

    -Or Fill value accordingly based on another field?

    Thanks,

  • Ammar Zaied Profile Picture
    1,670 on at

    thanks for all, yes Aileen, fill value accordingly based on another field

  • Verified answer
    Abed Haniyah Profile Picture
    4,287 on at

    You can achieve your requirement by using business rules :)

    Please refer to : technet.microsoft.com/.../dn531086.aspx

  • Verified answer
    Aileen Gusni Profile Picture
    44,524 on at

    Ammar,

    Oh..

    If this then you can use Business Rule of JavaScript if too complex.

    Because your subject is 'Create field' so that I thought you wanted to create a field programmatically.

    Or you can try to elaborate more if you cannot achieve this using business rule,.

    Thanks,

  • Ammar Zaied Profile Picture
    1,670 on at

    can you give a links about business rule of JS and it is possible to publish as a plugin for dynamics CRM ?

  • Verified answer
    Aileen Gusni Profile Picture
    44,524 on at

    Ammar,

    Plugin is kind of overkill if you achieved it using Business Rule.

    Example here:

    www.powerobjects.com/.../setting-field-values-vs-setting-default-values-business-rules

    Hope this helps.

    Thanks.

  • Community Member Profile Picture
    on at

    It sounds to me like you need this:

    One option set field

    A series of text fields to store related data (email, website, mobile...), all added to the form but not visible by default.

    A Business Rule to reveal the appropriate field based on the user's option set selection.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#2
Wayne Walton Profile Picture

Wayne Walton 2

#2
SA-08121319-0 Profile Picture

SA-08121319-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans