cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tagustin2020
Power Participant
Power Participant

Shipping Contents Collection Won't Write to SharePoint

@RandyHayes 

 

Hello Randy,

 

Me again! I'm trying to follow what you taught me in the Budget app I was working on as I have a similar use case with the Shipping App in the sense that I want to write the contents people wish to ship to a separate SharePoint list. I'm able to gather all of entries into the gallery as seen below, but I get errors when I try to write the Collection back to SharePoint via the Submit Form button. I've attached my screenshots and formulas in the Word doc (3 pgs). Would you mind taking a look and seeing if you can spot what I'm doing wrong? Thanks a mil, Teresa

 

SubmitFormSS.png

16 REPLIES 16

@dyee 

I'm not entirely sure what you mean by #2.  You can most certainly use the < and > on dates.

As for #3, if you've not used the monitor tool to diagnose issues with submitting to your datasource, I would suggest it highly as it will always tell you exactly what the issue is and you can correct from there.  So, 5 or 50 doesn't make a difference as you'll be able to quickly see the problem in the monitor tool.

However, in relation to misplaced letters/misspelling, in general, you should not be using column names unless they are directly coming from the datasource in the record schema.  The more you alter, the harder it is to design your app and the more problems you will have to troubleshoot.

 

Thanks for chiming in though...sometimes the more input the better!

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

#2 - Ignore me!  I was relying on old information.  I was making the same point you did here.  However, it looks like Microsoft has made dates a delegable function since.

Solved: Problems with delegation when filtering by date - Power Platform Community (microsoft.com)

 

 

@dyee 

Yes...it's an ever changing landscape!!  They became delegable within the past year. 

Other changes of interest:

    - Yes/No columns appear to now be delegable - with correct results.

    - Records in a datasource will refresh themselves now without issuing a refresh (some restrictions apply). Note, this has nothing to do with the fact that you could always patch/update records in your datasource and have changes immediately reflect without a refresh.  This has to do with records will update in your app when external (other app users or means) changes are made.

It's hard to keep track of them all and we all get stuck in the workarounds for when things didn't do that.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

@RandyHayes 

@dyee 

 

Thank you Randy! The formulas you provided recorded the Month, Quarter and Year as seen below.

SharePointMQYss.png

Here is the latest version of my formula. I realized I am missing a tie in with the Master List which is called 'Domestic Shipping Requests'. I have 3 ID columns in the Domestic list based on the recent help you offered in the forums. One is of course the internal SharePoint ID, The other is ReqNumber which is the 5-digit string (e.g. 10005) and the last is AltReqNumber which is the date-based one. I'm using ReqNumber for the home screen gallery since I am short on space due to the number of columns. I was planning to use AltReqNumber for a Reporting Screen. Does it matter which of the 3 I use? Assuming I have the identical column names in my 'Shipping Request Contents' SharePoint list, how would I add it to the formula below to create the tie in? Thanks in advance for your help. Teresa

Collect(colContents,
{Title: tiItemDescription.Text,
Value:Value(tiValue.Text),
Quantity: Value(tiQty.Text),
TotalValue: Value(lblSubTotal.Text),
Handling:ddHandling.Selected,
UOM:tiUOM.Text,
Year: Year(Now()),
Quarter: RoundUp(Month(Now())/3, 0),
Month: Month(Now()),
       Requestor:
          {
             Claims: "i:0#.f|membership|" & Lower(varUser.Email),
             DisplayName: varUser.FullName,
             Department: "", 
             Email: varUser.Email, 
             JobTitle: ".", 
             Picture: "."
          },
       RequestorEmail: Lower(varUser.Email)
    });
Reset(tiItemDescription);
Reset(tiValue);
Reset(tiQty);
Reset(ddHandling);
Reset(tiUOM)

 

@tagustin2020

This is the information you will be getting in your OnSuccess action.

So you're saying that you need to add those to your 'Shipping Request Contents' (SRC) records!?

 

What are those columns in your SRC record schema?  You just need to patch those in on the Collect in the OnSuccess action.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

@RandyHayes 

 

Hi Randy,

 

I'm just trying to ensure that when the user clicks on a shipping request in the home screen that they will see the contents associated with that record. I have a column called ReqNumber in both the 'Domestic Shipping Requests' SharePoint list and the 'Shipping Request Contents' list. The ReqNumber for the 'Domestic Shipping Requests' data source is set in the OnSuccess of the frmMaster. I'm not sure how to get whatever number is generated into the 'Shipping Request Contents' list as well.

 

To recap...

 

The 5-digit req number is generated in the OnSuccess of frmMaster.

UpdateIf('Domestic Shipping Requests', ID=Self.LastSubmit.ID,{'Request Number': Self.LastSubmit.ID + 10000})

 

The OnSelect of my Submit Form button is. The Collect part of the formula should be in the OnSuccess formula above, correct? Still not clear on how to write the number that is generated above into the Collect formula. Can you help me out?

Set(
    varPlaySpinner,
    true
);
    SubmitForm(frmMaster);
    Collect('Shipping Request Contents',colContents);
Set(
    varPlaySpinner,
    false
)

 

The OnSelect of my "add to collection" button is:

Collect(colContents,
{Title: tiItemDescription.Text,
Value:Value(tiValue.Text),
Quantity: Value(tiQty.Text),
TotalValue: Value(lblSubTotal.Text),
Handling:ddHandling.Selected,
UOM:tiUOM.Text,
Year: Year(Now()),
Quarter: RoundUp(Month(Now())/3, 0),
Month: Month(Now()),
       Requestor:
          {
             Claims: "i:0#.f|membership|" & Lower(varUser.Email),
             DisplayName: varUser.FullName,
             Department: "", 
             Email: varUser.Email, 
             JobTitle: ".", 
             Picture: "."
          },
       RequestorEmail: Lower(varUser.Email)
    });
Reset(tiItemDescription);
Reset(tiValue);
Reset(tiQty);
Reset(ddHandling);
Reset(tiUOM)

 Thank you Randy! Teresa

@RandyHayes 

 

Hi Randy,

 

Thanks for all your help with this. Let's put off the question of how to tie the Collection to a gallery of records for now. I marked your formula as the solution for this post. Thanks for helping me figure out how to write number values in a Collection back to SharePoint!

 

Teresa

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!   This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08  23 @WarrenBelz  31 @DBO_DV  10 @Amik  19 AmínAA 6 @mmbr1606  12 @rzuber  4 @happyume  7 @Giraldoj  3@ANB 6 (tie)   @SpongYe  6 (tie)     Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08  10@WarrenBelz 25 @DBO_DV  6@mmbr1606 14 @AmínAA 4 @Amik  12 @royg  3 @ANB  10 @AllanDeCastro  2 @SunilPashikanti  5 @Michaelfp  2 @FLMike  5 @eduardo_izzo  2   Meekou 2   @rzuber  2   @Velegandla  2     @PowerPlatform-P  2   @Micaiah  2     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27     Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8   SunilPashikanti8

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Top Solution Authors
Top Kudoed Authors
Users online (2,353)