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 Automate - Building Flows
Unanswered

Unable to get the document Id inside the Set Approval Status action

(0) ShareShare
ReportReport
Posted on by 3,504

We have the following flow:-

 

johnjohn123_0-1660765517804.png

johnjohn123_1-1660765565675.png

 

now when i tried to get the document id using this formula @{triggerOutputs()?['body/ID']} , i get this error:-

 

The 'inputs.parameters' of workflow operation 'Set_content_approval_status' of type 'OpenApiConnection' is not valid. Error details: The resolved string values for the following parameters are invalid, they may not be null or empty: 'id'

 

 

I have the same question (0)
  • ScottShearer Profile Picture
    25,240 Most Valuable Professional on at
    Re: Unable to get the document Id inside the Set Approval Status action

    @johnjohn123 

    You need to add a Get file metadata action.  Be sure to include the ETag in the Set content approval action.

    image.png

  • johnjohn123 Profile Picture
    3,504 on at
    Re: Unable to get the document Id inside the Set Approval Status action

    @ScottShearer  thanks but the "set approval status" is raising this error "Bad Gateway"

     

    johnjohn123_0-1660767664069.png

     

    inside the DL i have content approval + minor/major enabled

  • ScottShearer Profile Picture
    25,240 Most Valuable Professional on at
    Re: Unable to get the document Id inside the Set Approval Status action

    @johnjohn123 

    Please post screen shots of your Flow as currently configured.

     

    Thanks

  • ScottShearer Profile Picture
    25,240 Most Valuable Professional on at
    Re: Unable to get the document Id inside the Set Approval Status action

    @johnjohn123 

    I just ran a test and it looks like set content approval doesn't like major an minor versions - I got the same error as you show.  It might work on a published version but I haven't tested that....

     

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…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard