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 :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Is there a way to add new record to option set using workflow

(0) ShareShare
ReportReport
Posted on by

I want to add new record to option set using workflow. Is it possible in powerapps?

I have the same question (0)
  • Suggested answer
    Adnan Jalees Profile Picture
    455 User Group Leader on at

    Hello Emid, 

    You can define option set by using InsertOptionValueRequest in custom workflow assembly code. 

    please refer the links: https://docs.microsoft.com/en-us/dotnet/api/microsoft.xrm.sdk.messages.insertoptionvaluerequest?view=dynamics-general-ce-9

    https://docs.microsoft.com/en-us/powerapps/developer/data-platform/org-service/metadata-option-sets

    Hopefully you'll able to map the business requirements. 

    Please let me know if you have questions. 

    Thanks,

    Adnan

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Pani,

    Maybe you can try to use power automate to add new value to option sets, which may be easier.

    We will use the Common Data Service (Current Environment) connector and the "InsertOptionValue" Perform Unbound action to achieve this.

    Add new values to CDS Option Sets using Power Automate (bythedevs.com)

    For example, I have an local option set named ‘’

    pastedimage1612860597273v1.png

    1.Go Power Automate(https://us.flow.microsoft.com/en-us/ ) to create an instant vflow.

    2.Trigger- Manual:

    pastedimage1612861050461v4.png

    3.Action- Perform an unbound action using the Common Data Service (current environment).

    pastedimage1612861552171v9.png

    pastedimage1612861192262v5.png

    using following json:

    {
      "LocalizedLabels": [
        {
          "Label": "@{triggerBody()['text']}",
          "LanguageCode": 1033,
          "IsManaged": false,
          "HasChanged": null
        }
      ],
    
      "UserLocalizedLabel": {
        "Label": "@{triggerBody()['text']}",
        "LanguageCode": 1033,
        "IsManaged": false,
        "HasChanged": null
      }
    }

    Test:

    (1)Run the flow.

    pastedimage1612861007752v3.png

    (2)Result:

    pastedimage1612860953117v2.png

    Note: the option sets i test is global, if your option sets is local, you can refer following screenshot:

    Filling AttributeLogicalName and EntityLogicalName, other setting is same.

    pastedimage1612861427310v8.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Suggested answer
    CRMJetty Profile Picture
    3,512 on at

    Hello,

    Please refer this link,

    https://michalguzowski.pl/how-to-work-with-option-set-in-powerapps/

    http://simplesolutions365.com/how-to-create-a-custom-form-and-workflow-using-powerapps-and-flow/

    I hope it helps,

    Thanks.

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365

  • Dynamics 365 Customer Service Profile Picture
    45 on at

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 75 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 52 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 42 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans