Hey everyone,
I am looking for a way to add options to a blank optionset within powerautomate.
My goal is to be able to work with these added values in powerapps.
I am getting the data from a http request out of Business Central.
Flow updates perfectly all wanted fields in my entity except I dont know how to add an option from the http output to a optionset.
Thank you very much upfront for your help! 🙂
Thanks for your help so far guys! I will specify a Little more what I am trying to do and will come back to this Post later.
Hi @ghost6000 ,
Could you please share a bit more about your scenario?
Do you want to add a option from a HTTP Response to the Option Set Type of your CDS Entity?
Actually, the Option Set type field is essentially a Object type in CDS Entity, it contains Label and Value attribute. The Label attribute is used to store the Text value, e.g. "Pending". The Value attribute is used to store the Integer value, e.g.
After that, you could assign different integer value to this Option Set field based on the retrieved option from your HTTP Output.
Within the Option Set field, type the following sample formula:
if( equals(body('HTTP')?['option'], 'Option1'), 1, if( equals(body('HTTP')?['option'], 'Option2'), 2, 3 )
Hi @ghost6000,
By "adding an option", do you mean a new item in your optionset available values (metadata) or updating an entity field of datatype optionset? If updating an entity, Power Automate using the CDS Web API for its transactions, and so you need to assign the int value of the optionset item to update or set null to associate a blank value.
Hope this helps
stampcoin
17
mmbr1606
15
Super User 2025 Season 1
ankit_singhal
11
Super User 2025 Season 1