Skip to main content

Notifications

Community site session details

Community site session details

Session Id : IdSTU2dwYjeiaXAptDrfmW
Power Automate - Building Flows
Answered

How to add required information between trigger and Get item

Like (1) ShareShare
ReportReport
Posted on 13 Mar 2025 06:11:21 by 76
I posted this question some time ago but was unable to find a solution, so sorry for the repeat question.
 
I am using the trigger "For a selected item" in a SharePoint list, and then using "Get item" to get the fields and dynamic content to use further down in the workflow. I can't use any of the fields in the list item until Get item pulls them up, but Get item is asking for the information in the Details field, which is causing an error (sometimes, not every time the flow runs).
 
 
Until recently, if this error occurred our admin team would receive a notification, manually update the Details field and resubmit the flow, which would usually fix it, but they've made it so we can't do that now. There is always information in the Details field, it just can't read it until after the Get item step. I've also added a separate workflow to add information to the Details field any time anyone even touches anything in the SharePoint list, which hasn't helped.
 
I asked Co-Pilot how to fix it, and it said to use a Compose action with this expression: coalesce(triggerOutputs()?['body/Details'], 'Default Value')
 
It said to then use a condition to check if Details was empty, and if it was to have Get items refer to the output of the compose action. So, I can manage up to getting the condition to check if Details is empty, but how do I then add information to a field before Get item gets the field? The Co-Pilot got a bit confused at that point (me too). It seemed to try to add it to the ID field.
 
For the record, here are the parameters I can enter in the Get item action:
 
And the Settings view:
 
There may still be no answer to this, and I have asked our IT team to ask the team that has admin access to M365 to let us resubmit flows again, but just in case someone has some kind of idea of possible solutions thank you very much in advance.
 
 
  • MelBo Profile Picture
    76 on 14 Mar 2025 at 00:12:06
    How to add required information between trigger and Get item
    Thank you for the responses! The SharePoint list was based on a template, in which Details was made mandatory by default. I had assumed that was part of SharePoint generally, since I wasn't able to delete the field - like requiring a title, you can't remove that field because it's the file name. I didn't know you could go into the settings and remove the requirement for the field, this will fix a lot of problems that I have had! I will remove the field altogether now, thank you for your help!
  • abm abm Profile Picture
    32,404 Most Valuable Professional on 13 Mar 2025 at 10:22:39
    How to add required information between trigger and Get item
    Hi @MelBo
     
    I tried the following:
     
    Created a list
    Enter some values and left one field as blank
    Then went to list settings and made that field mandatory
     
    Run the Get Item action step and I got the details and it didn't throw that error.
     
    Please explain more about the user journey here. Also if you could post some sample data / screenshot that will be helpful to analyse the issue.
     
    Thanks
  • Verified answer
    abm abm Profile Picture
    32,404 Most Valuable Professional on 13 Mar 2025 at 10:13:52
    How to add required information between trigger and Get item
    Hi
     
    Believe what's happening here is for some reason details fields are mandatory and get item action step is expecting this value? Is this field is mandatory in SharePoint? Explain a bit more about on this. 
     
    Thanks

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,369 Most Valuable Professional

Leaderboard
Loading complete