cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,205)