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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Responses not stored i...
Power Apps
Answered

Responses not stored in Sharepoint List

(0) ShareShare
ReportReport
Posted on by 517

Hi all

 

I have dependent combo box's, they work well. The problem is that when I save the form, the region/country/bottlers responses are not stored. The SP list shows empty values.

 

I have 2 SP lists. One for the dependent dropdowns (Facilities_LATAM) and the one that stores the responses (BCP LATAM):

diegoandre10_0-1628364686968.jpeg

 

diegoandre10_1-1628364687090.jpeg

 

Please note Facilities_Latam datatypes are singles line of text. While Region/Country/Bottler/Plant fields for 'BCP LATAM' SP are choices.

 

The comboboxes code are the following:

 

Region items:

 

diegoandre10_2-1628364687622.jpeg

 

 

Region displayMode:

 

diegoandre10_3-1628364687517.jpeg

 

 

Region OnChange:

 

diegoandre10_4-1628364687008.jpeg

 

 

Country items:

 

diegoandre10_0-1628365025766.jpeg

 

 

Can you please advise why the responses are not stored in SP?

 

Thanks.

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @diegoandre10 
    What is the Update property of the datacard?  That is what dictates what is stored.

    It should (most likely) be:

        {Value: ComboboxRegion.Selected.Result}  (if you are using Distinct in the items).

     

    I hope this is helpful for you.

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @diegoandre10

     

    In "BCP LATAM", Are region, country, and Bottler are Lookup to another SP List?

     

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @StalinPonnusamy good point!  I saw that they were Choice columns, but that seems to be the other list.


    @diegoandre10 on that note, I'd first consider if you really want to use a complex Lookup or Choices type in your list over a simple text column as this would be much easier.

    Beyond that, I would then have some questions on your use of the Distinct function in the items property of your controls.  Distinct will ONLY return a single column table of results.  In order to update a Lookup column, you're going to need that ID of the foreign record and the Value of the foreign record.  So, distinct is going to cause some concerns.

     

  • diegoandre10 Profile Picture
    517 on at

    Hi @RandyHayes and @StalinPonnusamy 

     

    It worked with  {Value: ComboboxRegion.Selected.Result} 

     

    The only problem is that the SP stores only one answer and not the multiple values.

     

    See example:

     

    Input 

     

    kasjdlkjsad1.JPG

     

    SP list:

     

    LKASLka1.JPG

     

    Seems to be storing the latest answer submitted on the PowerApp form.

     

    What can I do in this case?

     

    Thanks!

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @diegoandre10 

    So you are trying to set multiple values...if that is the case, you first need to make sure your column in the sharepoint list is defined to allow multiple items.

    Then, change your Update property to the following:

        ForAll(ComboboxRegion.SelectedItems, {Value: Result})

  • diegoandre10 Profile Picture
    517 on at

    The SP Facilities_LATAM that works as a dependent dropdown is simple line of text:

     

     

    diegoandre10_0-1628368306312.png

     

     

    Regards.

  • diegoandre10 Profile Picture
    517 on at

    Hi @RandyHayes 

     

    BCP LATAM has allow multiples choices:

     

    kldsjflkdsjfkl1.JPG

     

    Facilities_LATAM is only text therefore:

     

    ds;dlfk;ldskf.JPG

     

     

    When I tried the code for Region card I get an error on update :

     

    diegoandre10_0-1628368716947.png

     

    Thanks!

     

  • diegoandre10 Profile Picture
    517 on at

    Hi @RandyHayes 

     

    It did work the code on Country and Bottler:

     

    diegoandre10_0-1628369069679.png

     

    diegoandre10_1-1628369093943.png

     

    Region stays the same as:

     

    diegoandre10_2-1628369205069.png

     

     

    Now when I press the button save, the record doesn't go through to the SP list (no error appears).

     

    Thanks!!

     

     

     

     

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @diegoandre10 

    Can you hover over the red underlines in the formula editor and tell me what the error is that comes up?

  • diegoandre10 Profile Picture
    517 on at

    Sure @RandyHayes 

     

    For region card:

     

    diegoandre10_0-1628369425209.png

     

     

    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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 471

#2
WarrenBelz Profile Picture

WarrenBelz 395 Most Valuable Professional

#3
11manish Profile Picture

11manish 279

Last 30 days Overall leaderboard