hi all,
have a dropdown with few values, lets say 1, 2 and 3
trying to create a button that would set value 3... like:
UpdateIf(BI, (ID=ThisItem.ID), {Status: '3'})
it tells me: "expecting a records".... any idea how to format this formula?
Solved! Go to Solution.
Sorry, I missed a little detail on that. Your formula should be this:
UpdateIf(BI, ID=ThisItem.ID,
{Status:
{Value: "3",
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"
}
}
)
That should work for you.
Consider the following change to your formula:
UpdateIf(BI, ID=ThisItem.ID, {Status: "3"})
This assumes that your Status is a text column.
You can also simplify your formula to use the current dropdown value:
UpdateIf(BI, ID=ThisItem.ID, {Status: Self.Value})
I hope this is helpful for you.
Hi @Sifu
Can you share more details about the property that you are using this expression on? Is the dropdown control under a gallery or form? If you can share more details, we might be able to help you better.
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
@RandyHayes unfortunately still not it.... see pic below
@yashag2255 i try again... its a sharepoint list that i customized with powerapps... one column is a combobox and i want to use one button to change it to a certain value ... this should save time of the user so he does not have to click the drop down choose right option and maybe even save... simply one click "Done"... (this option is also among the possible options within the combo...)
If your Status column is not text (which I mentioned my assumption was for that formula), then you have other provisions to add.
Your formula should look like this to account for that:
UpdateIf(BI, ID=ThisItem.ID,
{Status: "3",
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"
}
)
@RandyHayes do i require to adjust something or add some connector,? currently it still doesnt like something... (updateif has invalid arguments....
Sorry, I missed a little detail on that. Your formula should be this:
UpdateIf(BI, ID=ThisItem.ID,
{Status:
{Value: "3",
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"
}
}
)
That should work for you.
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
252 | |
236 | |
82 | |
36 | |
27 |
User | Count |
---|---|
317 | |
265 | |
122 | |
68 | |
44 |