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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dynamically add item t...
Power Apps
Answered

Dynamically add item to lookup list

(0) ShareShare
ReportReport
Posted on by 1,360

From a SharePointIntegration form pointing at a SharePoint list my form contains lookups.

When the user opens the form and clicks any of the drop downs, the dropdown may not have the selection they are looking for.
Is there a way to add a lookup value dynamically without having to leave the form and manually add the item to the lookup list?

golfnutt82_0-1663157064846.png

 

Categories:
I have the same question (0)
  • golfnutt82 Profile Picture
    1,360 on at

    Ok, I was able to find a way to dynamically add a new lookup list item when the lookup on the form doesn't have the value I am looking for. 
    I created a new screen that is connected to the datatype (GageType) where the lookup values are.
    In the GageType lookup list of values I added a value called "New Entry".
    When in the main form, where I am adding a new Item, I click the Gage Type dropdown and chose "New Entry".

    golfnutt82_0-1663174454701.png

    Using the OnChange event for the DataCardValue4 control, I set the navigation to open the new "GageTypeNewForm1" form when "Add New" is selected.

     

    The Add New Gage Type form opens where I can now add the new gage, save and then open the GageTrackingToolForm. 
    The issue I now have is the current Gage Type lookup doesn't get updated with the new entry.
    Am I missing something?

    golfnutt82_1-1663175101491.png

     

  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @golfnutt82 ,

     

    Please refresh the data source after you add a new item into tblGageType. For example: 

     

    Patch(tblGateType,Defaults(tblGateType),{XXXXXX};

    Refresh(tblGateType);

    Refresh(GageTracking);

    Navigate(GageXXXXXX)

     

    Best Regards,

    Bof

     

  • golfnutt82 Profile Picture
    1,360 on at

    Hello and thank you for your reply and the added refresh did the trick.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard