cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TPoszytek
Level: Powered On

Lookup columns are not set when creating new record in SharePoint Online

Hi!

 

I have a weird issue. I've created two pages, one is saving data to one SharePoint Online list, the other one to second. Each of those lists have lookup columns. However in my forms I have replaced the native drop-down fields with combo fields.

 

When I am creating a new record using the first form, in webdeveloper console I see that it is sending a request to SharePoint actually setting the lookup column:

 

2018-07-08_00h04_33.png

 

This control is created using a Combo Box.

 

Now, the second form, which has 5 lookups, is not setting them and when viewing the request using web developer I see, that it is actually not sending the proper datatype, but simply and ID of a selected record. Moreover, not for every field (even if a combo box has a value selected, it is not reflected when submitting the form):

 

2018-07-08_00h12_34.png

 

Does anyone have faced such behavior? Do you know what is a reason? How it can be resolved?

 

Regards,

Tomasz

1 ACCEPTED SOLUTION

Accepted Solutions
TPoszytek
Level: Powered On

Re: Lookup columns are not set when creating new record in SharePoint Online

Hi, thanks for a fast response.

 

I currently make a workaround, I have added a regular lookup fields, that are present in a data source to the form and set them to have a default value, eg.:

 

{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: DataCardValue289_1.Selected.ID, Value: Text(DataCardValue289_1.Selected.ID) }

It works like a charm.

 

Regarding your question: 

  1. No, I am not using Patch function. I am using a regular form and submit function.
  2. Column types is always Text.
  3. Items property of Combo boxes is set to a specific datasource, which is a single SharePoint list (different for each combo box).
  4. Regarding the configuration, see below two screenshots - first of a DataCard, the second one of the combo box itself. Each pair is configured the same way, only the fields and data sources are different:

 2018-07-09_11h54_25.pngDataCard      2018-07-09_11h54_42.pngCombo box

 

Best regards,

Tomasz

 

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Lookup columns are not set when creating new record in SharePoint Online

Hi @TPoszytek,

 

Can you share mode detailed configuration of these combo boxes? What is the Item property of combo boxes? And I guess that you use the Patch formula to update record, would you please share this formula too? Also, in the combo box control, what is the column type of the Lookup source list?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
TPoszytek
Level: Powered On

Re: Lookup columns are not set when creating new record in SharePoint Online

Hi, thanks for a fast response.

 

I currently make a workaround, I have added a regular lookup fields, that are present in a data source to the form and set them to have a default value, eg.:

 

{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: DataCardValue289_1.Selected.ID, Value: Text(DataCardValue289_1.Selected.ID) }

It works like a charm.

 

Regarding your question: 

  1. No, I am not using Patch function. I am using a regular form and submit function.
  2. Column types is always Text.
  3. Items property of Combo boxes is set to a specific datasource, which is a single SharePoint list (different for each combo box).
  4. Regarding the configuration, see below two screenshots - first of a DataCard, the second one of the combo box itself. Each pair is configured the same way, only the fields and data sources are different:

 2018-07-09_11h54_25.pngDataCard      2018-07-09_11h54_42.pngCombo box

 

Best regards,

Tomasz

 

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,052)