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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Change Field Value dep...
Power Automate
Unanswered

Change Field Value depending on Condition Outcome - Flow

(0) ShareShare
ReportReport
Posted on by 41

Hello!

 

I would like to add an action to the below flow whereby if the value of the Condition is 'Yes', in addition to sending out an Email, I would like to change the value of the field 'Progress' on the Sharepoint list item from 'Not Started' to 'In Progress'. I've tried using the action: 'Get changes for an item or a file(properties only)', but have had no luck

 

Flow Steps:

 

1. 

Marlon89_0-1660294266677.png

2. 

Marlon89_1-1660294298190.png

3. 

Marlon89_2-1660294333332.png

 

Categories:
I have the same question (0)
  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at
    Re: Change Field Value depending on Condition Outcome - Flow

    Hello @Marlon89 ,

    you should use the SharePoint "Update item" action, specifying the ID got from the Trigger:

    MarconettiMarco_0-1660302111698.png

     

     

    If I have answered your question, please mark my post as Solved.
    If you like my response, please give it a Thumbs Up.

    BR,

    Marco

  • Marlon89 Profile Picture
    41 on at
    Re: Change Field Value depending on Condition Outcome - Flow

    Hi @MarconettiMarco 

     

    Many thanks for your reply!

     

    I have tried including the Update Action Item under 'Condition' 'If Yes', however the value of the field is not changing if am approving the request.

     

    Marlon89_0-1660309205455.png

     

    Checked flow and this is the error

     

    Marlon89_1-1660310637252.png

     

     

     

  • v-jefferni Profile Picture
    on at
    Re: Change Field Value depending on Condition Outcome - Flow

    Hi @Marlon89 ,

     

    I can reproduce this issue, when there is a Choices column which allows multiple selections, it cannot be updated using the same value from the trigger directly. Please try below method:

    vjefferni_0-1660894726186.png

     

    So, you can use a Select Control to generate a single column array to store all the choices values, and use this array to populate the field in Update item action. Each multiple selections Choices column needs a Select Control.

     

    Best regards,

     

  • Marlon89 Profile Picture
    41 on at
    Re: Change Field Value depending on Condition Outcome - Flow

    Hi @v-jefferni ,

     

    Thanks for the above. The flow is failing because of the following error:

     

    BadRequest. The 'from' property value in the 'select' action inputs is of type 'Object'. The value must be an array.

     

    Inputs:

     

    {
        "from": {
            "@odata.type""#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
            "Id"0,
            "Value""Not started"
        }
    }
     
    Just to note, I have tried including the Value of the Field 'Progress'. This is a 'triggerOutputs()'. I believe this error is because the trigger output is referencing an object, and not the item array
     
    Marlon89_0-1661244814907.png
     
    Flow after Condition of Outcome is 'Approved':
     
    Marlon89_1-1661245081804.pngMarlon89_3-1661245121784.png

     

     

     
     
  • v-jefferni Profile Picture
    on at
    Re: Change Field Value depending on Condition Outcome - Flow

    Hi @Marlon89 ,

     

    I was mentioning the allow multiple selections Choices column, which in your case is the Internal column. Progress column should be a single selection Choice column, so it can be populated from dynamic contents directly. Besides, if the column values do not need to update, you can leave the input areas blank unless it's required. The Update item action will ONLY update the fields that have values in the action.

     

    Best regards,

  • Verified answer
    Marlon89 Profile Picture
    41 on at
    Re: Change Field Value depending on Condition Outcome - Flow

    Hi, 

     

    Issue resolved. The prevalent error was the following:

     

    "the 'inputs.parameters' of workflow operation 'update_item_2' of type 'openapiconnection' is not valid. error details: the api operation does not allow writing a value for parameter 'item/assignedto[0]/displayname'. this parameter is read only."

     

    One work around was to change this List Item Field from Mandatory to Optional, therefore I did not need to reference it in the 'Update Item' Section and the flow was able to run successfully. The dynamic fields containing 'Yes/No' Options were successfully changed depending out the outcomes mentioned within 'Update Item'

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard