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 / cascade dropdown field...
Power Apps
Unanswered

cascade dropdown field value not saved in a list

(0) ShareShare
ReportReport
Posted on by 94

Hello, i've read many post but unable to resolve the problem.

I have a list with 2 lookup field   "Pratica" and attivita". These 2 field are in an other list.

reading, post and webinar, i modify the list with power app, and i've been able to create the cascade look up.

But when i try in a list to add a new field, the field "Pratica" and "Attività" that i choosed from the dropdown are not saved.

I think that i have to modify the  update item of the Datacard.

name of the field of the datalist "Pratica"

name of the datacard dropdown "Pratica_Datacard1"

name of teh dropdown in this card is "Pratica1"

In the edit of the Pratica_Datacard1" i wrote:

{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: Pratica1.Selected.Value,
Value: Pratica1.Selected.Value
}

But there is an errore, and the app doesn't functions.

 

Very grateful if someone can help me.

(sorry for my writing, i am from Italy)

 

 

 

 

Categories:
I have the same question (0)
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @ancorte ,

     

    If error is on Code. Please try below code if it helps 

    {
    '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    Id: Pratica1.Selected.Id,
    Value: Pratica1.Selected.Value
    }

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • ancorte Profile Picture
    94 on at

    Thanks for your helpful, but it seems that don't accept the comma "," after SPListExpandedReference",

    it is underlined in red.

     

    ancorte_0-1630405610772.png

     

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @ancorte ,

     

    What is the error message could hove on the error to see the error message. 

  • ancorte Profile Picture
    94 on at

    Hello,

    in bold the error (in red in the immagine).

    Thanks for your help

    {

    '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference";

    Id: Pratica1.Selected.Id;

    Value: Pratica1.Selected.Value

    }

    ancorte_0-1630413070317.png

     

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @ancorte ,

     

    Please use the column from the parent lookup list. The ID should the id of the item and Value should be the Text value you looked up. Please update the column name according to your datasource. 

  • ancorte Profile Picture
    94 on at

    Ok, I modified like this:

    {
    '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    Id: ('Pr_Att_St1', Pratica = Pratica.Selected.Id,),
    Value: Pratica.Selected.Value
    }

    Pr_Att_St1 is a list that contains the elements where look up.

    Pratica is the field of Pr_Att_St1 list

     

    But doesn't function, it gives me an error, the "," is underline in red  "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",   <--------

    I dont' know what to do.

     

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    hi @ancorte ,

     

    In the code you sent I can see a extra , and Pr_Att_St1', Pratica 

    Is it 'Pr_Att_St1'.Pratica or Pratica.Selected.Id because together its wrong 

     

    {
    '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    Id: ('Pr_Att_St1', Pratica = Pratica.Selected.Id,),
    Value: Pratica.Selected.Value
    }

  • ancorte Profile Picture
    94 on at

    Nothing, every modification that i make i have always the same error in the  comma ',' after

    "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",     in red

    So i don't know if there are other errors..

     

    Spoiler (Highlight to read)
     
     

     

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard